bang-bang heater toggle is wrong way around

Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
This commit is contained in:
Architect 2011-02-20 11:02:18 +11:00 committed by Michael Moon
parent 72adba5a58
commit 65a1846955
1 changed files with 2 additions and 2 deletions

View File

@ -178,9 +178,9 @@ void heater_tick(heater_t h, temp_sensor_t t, uint16_t current_temp, uint16_t ta
#endif
#else
if (current_temp >= target_temp)
pid_output = BANG_BANG_ON;
else
pid_output = BANG_BANG_OFF;
else
pid_output = BANG_BANG_ON;
#endif
#ifdef HEATER_SANITY_CHECK