Do the init automatically now, also fix "=>" to ">=" :)

This commit is contained in:
Stefan `Sec` Zehl 2011-08-03 00:42:44 +02:00
parent 222f491205
commit 0aadf3fba8
1 changed files with 2 additions and 4 deletions

View File

@ -100,7 +100,7 @@ void tick_flame(void) { // every 10ms
flameI2Cpwm = 0xFF;
}
push_queue(&setFlamePWM);
if (flameI2Cpwm => flameBrightnessMax) {
if (flameI2Cpwm >= flameBrightnessMax) {
flameMode = FLAME_UP_WAIT;
flameTicks = 0;
}
@ -132,9 +132,7 @@ void tick_flame(void) { // every 10ms
}
}
//# MENU flame
void flameInit(void) {
void init_flame(void) {
i2cInit(I2CMASTER); // Init I2C
flameEnabled = (flameSetI2C(FLAME_I2C_CR_LS0, FLAME_I2C_LS0_OFF << FLAME_I2C_LS0_LED0) == I2CSTATE_ACK); // probe i2c