From a20501a6a6293ad6dc677edbb18d7d553ac1f749 Mon Sep 17 00:00:00 2001 From: Ewowi Date: Thu, 8 Sep 2022 10:20:54 +0200 Subject: [PATCH] CustomEffects: Remove unused variables which conflict with other mods --- usermods/customeffects/usermod_v2_customeffects.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/usermods/customeffects/usermod_v2_customeffects.h b/usermods/customeffects/usermod_v2_customeffects.h index 6664eab9..e0b80585 100644 --- a/usermods/customeffects/usermod_v2_customeffects.h +++ b/usermods/customeffects/usermod_v2_customeffects.h @@ -4,8 +4,7 @@ #include "arti_wled.h" -//declare weathermod global variables (always precede with weather_ (psuedo class static variables) -static uint32_t usermods_pushLoop = 0; //effect pushes loop to execute. might be interesting for audioreactive too +//declare global variables ARTI * arti; //effect function @@ -96,7 +95,6 @@ class CustomEffectsUserMod : public Usermod { // strings to reduce flash memory usage (used more than twice) static const char _name[]; //usermod name - unsigned long lastTime = 0; //will be used to download new forecast every hour char errorMessage[100] = ""; bool enabled = false; @@ -115,11 +113,6 @@ class CustomEffectsUserMod : public Usermod { } void loop() { - //execute only if effect pushes it or every hour - if (usermods_pushLoop > millis() - 1000 && (lastTime == 0 || millis() - lastTime > 3600 * 1000)) { - lastTime = millis(); - } - usermods_pushLoop = 0; } /*