comparison tempctrl.c @ 79:a1edf53d904e

Use new routine to print short error code rather than a cryptic number.
author darius@Inchoate
date Wed, 21 Jan 2009 22:52:40 +1030
parents 006a99b406dd
children c8cd6dd74ca1
comparison
equal deleted inserted replaced
78:006a99b406dd 79:a1edf53d904e
366 static void 366 static void
367 printtemp(char *name, int tmp, char *trailer) { 367 printtemp(char *name, int tmp, char *trailer) {
368 if (tmp > OW_TEMP_BADVAL) 368 if (tmp > OW_TEMP_BADVAL)
369 printf_P(PSTR("%S: %d.%02d%S"), name, GETWHOLE(tmp), GETFRAC(tmp), trailer); 369 printf_P(PSTR("%S: %d.%02d%S"), name, GETWHOLE(tmp), GETFRAC(tmp), trailer);
370 else 370 else
371 printf_P(PSTR("%S: NA (%d)%S"), name, tmp, trailer); 371 printf_P(PSTR("%S: %S%S"), name, OWTempStatusStr(tmp, 1), trailer);
372 } 372 }
373 373
374 /* Read the settings from EEPROM 374 /* Read the settings from EEPROM
375 * If the CRC fails then reload from flash 375 * If the CRC fails then reload from flash
376 */ 376 */