This commit is contained in:
2018-09-03 03:33:51 +02:00
parent b69a0937a0
commit cbb4b95244
5 changed files with 27 additions and 12 deletions

View File

@@ -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]);

View File

@@ -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