comparison tempctrl.c @ 68:ac45a96e8034

Check the right value for staleness(!)
author darius@Inchoate
date Mon, 19 Jan 2009 22:52:36 +1030
parents 52aa7716148c
children 3dcf933f2640
comparison
equal deleted inserted replaced
67:52aa7716148c 68:ac45a96e8034
241 ambient_temp = OWGetTemp(settings.ambient_ROM); 241 ambient_temp = OWGetTemp(settings.ambient_ROM);
242 242
243 /* We only care about this one, only update the value we decide on 243 /* We only care about this one, only update the value we decide on
244 * only if it is valid 244 * only if it is valid
245 */ 245 */
246 if (fermenter_temp > OW_TEMP_BADVAL) { 246 if (tempt > OW_TEMP_BADVAL) {
247 fermenter_temp = tempt; 247 fermenter_temp = tempt;
248 lastdata = t; 248 lastdata = t;
249 } 249 }
250 250
251 /* Check for stale data */ 251 /* Check for stale data */