diff --git a/controllerHomie/controllerHomie.ino b/controllerHomie/controllerHomie.ino index 8b16d10..5511834 100644 --- a/controllerHomie/controllerHomie.ino +++ b/controllerHomie/controllerHomie.ino @@ -7,7 +7,7 @@ #define FW_NAME "tischlicht" #define FW_VERSION "1.0.3" -#define DEBUG //turns on continuous serial debug printing +//#define DEBUG //turns on continuous serial debug printing /* * To Update configuration (wifi credentials) from data/homie/config.json: @@ -223,9 +223,8 @@ void loopHandler() { enable=true; //enable light set_brightness=0; //reset brightness brightness=set_brightness; //immediately - } - - if (enable) { //only change values if enabled + holdDirection_brightness=true; //increase brightness + } else if (enable) { //only change values if enabled // Button A Longpress Handling if (flag_btnAholdstart) { /* //Change only hold direction at extremes