fix brightness direction on held down if not enabled

This commit is contained in:
interfisch 2019-10-19 13:43:17 +02:00
parent e60bdf4d5d
commit eebe634383
1 changed files with 3 additions and 4 deletions

View File

@ -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