comparison 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
comparison
equal deleted inserted replaced
126:6a9419ac8f77 127:b32ddec655c5
894 { 894 {
895 printf_P("wort is too hot\n"); 895 printf_P("wort is too hot\n");
896 turn_on = true; 896 turn_on = true;
897 } 897 }
898 898
899 if ((fridge_valid && last_fridge > fridge_max))
900 {
901 printf_P("fridge is max too hot\n");
902 turn_on = true;
903 }
904
905
899 if ((last_wort > wort_min || !wort_valid) && 906 if ((last_wort > wort_min || !wort_valid) &&
900 (fridge_valid && last_fridge > fridge_setpoint)) 907 (fridge_valid && last_fridge > fridge_setpoint))
901 { 908 {
902 printf_P("fridge is too hot\n"); 909 printf_P("fridge is too hot\n");
903 turn_on = true; 910 turn_on = true;