Merge branch 'master' of github.com:r0ket/r0ket

This commit is contained in:
schneider 2011-08-03 00:57:46 +02:00
commit 0d67b62050
1 changed files with 2 additions and 2 deletions

View File

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