We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7001fa4 commit 3a22ba6Copy full SHA for 3a22ba6
firmware/src/radio/websocket.cpp
@@ -133,18 +133,10 @@ void parseDeviceSettings(JsonObject doc) {
133
return;
134
}
135
136
- if (doc.containsKey("use_inspection")) {
137
- bool useInspection = doc["use_inspection"];
138
- state.useInspection = useInspection;
139
- }
140
-
141
- if (doc.containsKey("secondary_text")) {
142
- String secondaryText = doc["secondary_text"];
143
- strncpy(state.secondaryText, secondaryText.c_str(), 32);
144
145
146
- bool added = doc["added"];
147
- state.added = added;
+ String secondaryText = doc["secondary_text"];
+ strncpy(state.secondaryText, secondaryText.c_str(), 32);
+ state.useInspection = doc["use_inspection"];
+ state.added = doc["added"];
148
149
stateHasChanged = true;
150
0 commit comments