diff --git a/wled00/json.cpp b/wled00/json.cpp index bd0c31e7..9cd70c27 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -263,9 +263,11 @@ bool deserializeState(JsonObject root) } } - if (root["nx"].is()) { - strncpy(cronixieDisplay, root["nx"], 6); - } + #ifndef WLED_DISABLE_CRONIXIE + if (root["nx"].is()) { + strncpy(cronixieDisplay, root["nx"], 6); + } + #endif usermods.readFromJsonState(root);