bang-bang heater toggle is wrong way around
Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
This commit is contained in:
parent
72adba5a58
commit
65a1846955
4
heater.c
4
heater.c
|
|
@ -178,9 +178,9 @@ void heater_tick(heater_t h, temp_sensor_t t, uint16_t current_temp, uint16_t ta
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
if (current_temp >= target_temp)
|
if (current_temp >= target_temp)
|
||||||
pid_output = BANG_BANG_ON;
|
|
||||||
else
|
|
||||||
pid_output = BANG_BANG_OFF;
|
pid_output = BANG_BANG_OFF;
|
||||||
|
else
|
||||||
|
pid_output = BANG_BANG_ON;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HEATER_SANITY_CHECK
|
#ifdef HEATER_SANITY_CHECK
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue