changeset 426:b3b85cd4f09b

fridge-too-hot mode
author Matt Johnston <matt@ucc.asn.au>
date Thu, 11 Oct 2012 19:19:35 +0800
parents eb685e1afcbb
children 7c2efec9cd51
files main.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
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))
         {