From e47932c9aa98d70833afa75e2bc8353fa4a7780d Mon Sep 17 00:00:00 2001 From: devilpro1 <92226222+DevilPro1@users.noreply.github.com> Date: Wed, 29 May 2024 20:13:37 +0200 Subject: [PATCH] Update usermod_smartnest.h --- usermods/smartnest/usermod_smartnest.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/usermods/smartnest/usermod_smartnest.h b/usermods/smartnest/usermod_smartnest.h index 38026d922..92d524c88 100644 --- a/usermods/smartnest/usermod_smartnest.h +++ b/usermods/smartnest/usermod_smartnest.h @@ -177,15 +177,10 @@ public: * setup() is called once at startup to initialize the usermod. */ void setup() { - // Initialization code here - if (!initialized) { DEBUG_PRINTF("Smartnest usermod setup initializing..."); // Publish initial status sendToBroker("report/status", "Smartnest usermod initialized"); - - initialized = true; - } } /** @@ -198,7 +193,7 @@ public: lastMqttReport = currentMillis; // Report current brightness - char brightnessMsg[6]; + char brightnessMsg[11]; sprintf(brightnessMsg, "%u", bri); sendToBroker("report/brightness", brightnessMsg);