CRONIXIE check in json.cpp

This commit is contained in:
SpikeyHelmet 2021-06-01 06:37:35 +05:30
parent 7019ddb165
commit 2178fd6ee9
No known key found for this signature in database
GPG Key ID: 8A1CFBC050B19496

View File

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