comparison tempctrl.c @ 33:d3b7d4964807

Create a TZ info structure for ACST and use it when printing times.
author Daniel O'Connor <darius@dons.net.au>
date Tue, 27 Nov 2012 15:56:31 +1030
parents 03592ca4d37e
children 56b32b0c9a40
comparison
equal deleted inserted replaced
32:188d5a8a7470 33:d3b7d4964807
270 270
271 if (nextstate != '-') 271 if (nextstate != '-')
272 currstate = nextstate; 272 currstate = nextstate;
273 273
274 274
275 gmtime_r(&t, &tm); 275 localtime_r(&t, &tm);
276 assert(strftime(buf, sizeof(buf) - 1, "%Y/%m/%d %H:%M:%S: ", &tm) != 0); 276 assert(strftime(buf, sizeof(buf) - 1, "%Y/%m/%d %H:%M:%S: ", &tm) != 0);
277 fputs(buf, stdout); 277 fputs(buf, stdout);
278 printtemp("Tr", settings.target_temp, ", "); 278 printtemp("Tr", settings.target_temp, ", ");
279 printtemp("Fm", tempt, ", "); // Use actual value from sensor 279 printtemp("Fm", tempt, ", "); // Use actual value from sensor
280 printtemp("Fr", fridge_temp, ", "); 280 printtemp("Fr", fridge_temp, ", ");