From 2178fd6ee9bbae123090ce5d0b6df9f99ca0dafb Mon Sep 17 00:00:00 2001 From: SpikeyHelmet Date: Tue, 1 Jun 2021 06:37:35 +0530 Subject: [PATCH] CRONIXIE check in json.cpp --- wled00/json.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wled00/json.cpp b/wled00/json.cpp index bd0c31e7d..9cd70c277 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);