mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-16 10:04:30 +01:00
stuff
This commit is contained in:
@@ -50,7 +50,7 @@ struct NeoPatternDto : public JsonStruct {
|
||||
// Map a json object to this struct.
|
||||
void fromJsonObject(JsonObject& json){
|
||||
if(!verifyJsonObject(json)){
|
||||
PRINT_MSG(Serial, "PatternState.fromJsonObject", "cannot parse JSON");
|
||||
PRINT_MSG(Serial, "fromJsonObject", "cannot parse JSON");
|
||||
return;
|
||||
}
|
||||
mode = atoi(json[JSON_MODE_NODE]);
|
||||
|
||||
@@ -9,8 +9,8 @@ patterns: NONE = 0, RAINBOW_CYCLE = 1, THEATER_CHASE = 2, COLOR_WIPE = 3, SCANNE
|
||||
}
|
||||
*/
|
||||
|
||||
#define JSON_MODE_NODE "pixelMode"
|
||||
#define JSON_VALUE "pixelValue"
|
||||
#define JSON_MODE_NODE "mode"
|
||||
#define JSON_VALUE "value"
|
||||
#define JSON_ACTION_NODE "action"
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user