# HG changeset patch # User darius@inchoate.localdomain # Date 1215349952 -34200 # Node ID 51e7458d2e76d1d0dd480bc328b8301ad52aab5c # Parent 97ae82023d5badd1e116846d0bb62d1ec6dc83fc Init lastdata same as lastheat/coolon/off otherwise we won't handle thing properly early on (ie if now < lastdata/lastheat/coolon/off) diff -r 97ae82023d5b -r 51e7458d2e76 tempctrl.c --- a/tempctrl.c Sun Jul 06 22:28:21 2008 +0930 +++ b/tempctrl.c Sun Jul 06 22:42:32 2008 +0930 @@ -172,7 +172,7 @@ tempctrl_update(void) { /* State variables */ static int32_t checktime = 0; // Time of next check - static int32_t lastdata = 0; // Last time we got data + static int32_t lastdata = -100000; // Last time we got data static int16_t fermenter_temp = 0; // Fermenter temperature static int16_t fridge_temp = 0; // Fridge temperature