Mercurial > templog
changeset 127:b32ddec655c5
fridge-too-hot mode
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 11 Oct 2012 19:19:35 +0800 |
parents | 6a9419ac8f77 |
children | fbb076bf2a59 |
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)) {