From 81cc5ccc9a4d5136ccc7d1729d5ecaf5afc5ee19 Mon Sep 17 00:00:00 2001 From: Nic Limper Date: Mon, 2 Oct 2023 13:51:11 +0200 Subject: [PATCH] tiny oops --- ESP32_AP-Flasher/src/web.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ESP32_AP-Flasher/src/web.cpp b/ESP32_AP-Flasher/src/web.cpp index b9c8aed3..9d50275f 100644 --- a/ESP32_AP-Flasher/src/web.cpp +++ b/ESP32_AP-Flasher/src/web.cpp @@ -102,10 +102,14 @@ void wsSendSysteminfo() { uint32_t tagcount = getTagCount(timeoutcount); char result[40]; if (timeoutcount > 0) { +#ifdef HAS_RGB_LED if (apInfo.state == AP_STATE_ONLINE && apInfo.isOnline == true) rgbIdleColor = CRGB::DarkBlue; +#endif snprintf(result, sizeof(result), "%lu / %lu, %lu timed out", tagcount, tagDB.size(), timeoutcount); } else { +#ifdef HAS_RGB_LED if (apInfo.state == AP_STATE_ONLINE && apInfo.isOnline == true) rgbIdleColor = CRGB::Green; +#endif snprintf(result, sizeof(result), "%lu / %lu", tagcount, tagDB.size()); } setVarDB("ap_tagcount", result);