fixed greather than/less than for mode change
This commit is contained in:
parent
0aadf3fba8
commit
d8a1d0c78d
|
@ -90,7 +90,7 @@ void tick_flame(void) { // every 10ms
|
|||
flameI2Cpwm = 0xFF;
|
||||
}
|
||||
push_queue(&setFlamePWM);
|
||||
if (flameI2Cpwm == flameBrightnessMax) {
|
||||
if (flameI2Cpwm >= flameBrightnessMax) {
|
||||
flameMode = FLAME_UP_WAIT;
|
||||
flameTicks = 0;
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ void tick_flame(void) { // every 10ms
|
|||
flameI2Cpwm = 0x00;
|
||||
}
|
||||
push_queue(&setFlamePWM);
|
||||
if (flameI2Cpwm == flameBrightnessMin) {
|
||||
if (flameI2Cpwm <= flameBrightnessMin) {
|
||||
flameMode = FLAME_DOWN_WAIT;
|
||||
flameTicks = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue