fix brightness direction on held down if not enabled
This commit is contained in:
parent
e60bdf4d5d
commit
eebe634383
|
@ -7,7 +7,7 @@
|
||||||
#define FW_NAME "tischlicht"
|
#define FW_NAME "tischlicht"
|
||||||
#define FW_VERSION "1.0.3"
|
#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:
|
* To Update configuration (wifi credentials) from data/homie/config.json:
|
||||||
|
@ -223,9 +223,8 @@ void loopHandler() {
|
||||||
enable=true; //enable light
|
enable=true; //enable light
|
||||||
set_brightness=0; //reset brightness
|
set_brightness=0; //reset brightness
|
||||||
brightness=set_brightness; //immediately
|
brightness=set_brightness; //immediately
|
||||||
}
|
holdDirection_brightness=true; //increase brightness
|
||||||
|
} else if (enable) { //only change values if enabled
|
||||||
if (enable) { //only change values if enabled
|
|
||||||
// Button A Longpress Handling
|
// Button A Longpress Handling
|
||||||
if (flag_btnAholdstart) {
|
if (flag_btnAholdstart) {
|
||||||
/* //Change only hold direction at extremes
|
/* //Change only hold direction at extremes
|
||||||
|
|
Loading…
Reference in New Issue