Do the init automatically now, also fix "=>" to ">=" :)
This commit is contained in:
parent
222f491205
commit
0aadf3fba8
|
@ -100,7 +100,7 @@ void tick_flame(void) { // every 10ms
|
||||||
flameI2Cpwm = 0xFF;
|
flameI2Cpwm = 0xFF;
|
||||||
}
|
}
|
||||||
push_queue(&setFlamePWM);
|
push_queue(&setFlamePWM);
|
||||||
if (flameI2Cpwm => flameBrightnessMax) {
|
if (flameI2Cpwm >= flameBrightnessMax) {
|
||||||
flameMode = FLAME_UP_WAIT;
|
flameMode = FLAME_UP_WAIT;
|
||||||
flameTicks = 0;
|
flameTicks = 0;
|
||||||
}
|
}
|
||||||
|
@ -132,9 +132,7 @@ void tick_flame(void) { // every 10ms
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//# MENU flame
|
void init_flame(void) {
|
||||||
void flameInit(void) {
|
|
||||||
|
|
||||||
i2cInit(I2CMASTER); // Init I2C
|
i2cInit(I2CMASTER); // Init I2C
|
||||||
|
|
||||||
flameEnabled = (flameSetI2C(FLAME_I2C_CR_LS0, FLAME_I2C_LS0_OFF << FLAME_I2C_LS0_LED0) == I2CSTATE_ACK); // probe i2c
|
flameEnabled = (flameSetI2C(FLAME_I2C_CR_LS0, FLAME_I2C_LS0_OFF << FLAME_I2C_LS0_LED0) == I2CSTATE_ACK); // probe i2c
|
||||||
|
|
Loading…
Reference in New Issue