diff main.c @ 127:b32ddec655c5

fridge-too-hot mode
author Matt Johnston <matt@ucc.asn.au>
date Thu, 11 Oct 2012 19:19:35 +0800
parents b2700c7e5492
children fbb076bf2a59
line wrap: on
line diff
--- a/main.c	Thu Oct 11 19:19:24 2012 +0800
+++ b/main.c	Thu Oct 11 19:19:35 2012 +0800
@@ -896,6 +896,13 @@
             turn_on = true;
         }
 
+        if ((fridge_valid && last_fridge > fridge_max))
+        {
+            printf_P("fridge is max too hot\n");
+            turn_on = true;
+        }
+
+
         if ((last_wort > wort_min || !wort_valid) &&
             (fridge_valid && last_fridge > fridge_setpoint))
         {