From 65a18469553a08ba5554ad8feeef409d08485f51 Mon Sep 17 00:00:00 2001 From: Architect Date: Sun, 20 Feb 2011 11:02:18 +1100 Subject: [PATCH] bang-bang heater toggle is wrong way around Signed-off-by: Michael Moon --- heater.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/heater.c b/heater.c index 8779dc1..35288ca 100644 --- a/heater.c +++ b/heater.c @@ -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