Skip to content

Commit

Permalink
CRONIXIE check in json.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeyHelmet committed Jun 1, 2021
1 parent 7019ddb commit 2178fd6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions wled00/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,11 @@ bool deserializeState(JsonObject root)
}
}

if (root["nx"].is<const char*>()) {
strncpy(cronixieDisplay, root["nx"], 6);
}
#ifndef WLED_DISABLE_CRONIXIE
if (root["nx"].is<const char*>()) {
strncpy(cronixieDisplay, root["nx"], 6);
}
#endif

usermods.readFromJsonState(root);

Expand Down

0 comments on commit 2178fd6

Please sign in to comment.