Central Heating controller using the real time clock, PHY module for internet, 1-wire interface for temperature sensors, a system log and a configuration file
Dependencies: net 1-wire lpc1768 crypto clock web fram log
/media/uploads/andrewboyson/heating.sch
/media/uploads/andrewboyson/heating.brd
/media/uploads/andrewboyson/eagle.epf
Diff: heating/values.c
- Revision:
- 13:2ca12dd42e91
- Parent:
- 11:fa01ea25b62d
- Child:
- 20:904a4f043f2c
diff -r c7da0c61612d -r 2ca12dd42e91 heating/values.c --- a/heating/values.c Mon Dec 03 16:27:48 2018 +0000 +++ b/heating/values.c Tue Dec 04 14:40:20 2018 +0000 @@ -29,7 +29,7 @@ char* ValuesGetFileName ( ) { return fileName; } int ValuesGetWriteSize ( ) { return (int) writeSize; } int ValuesGetReadInterval ( ) { return (int) readInterval; } -void ValuesGetStartTm (struct tm* ptm) { TimeToTmUtc(startTime, ptm); } +void ValuesGetStartTm (struct tm* ptm) { ClkTimeToTmUtc(startTime, ptm);} int ValuesGetCount ( ) { return (int) count; } static void lblcpy(char* dst, char* src) { strncpy(dst, src, DNS_MAX_LABEL_LENGTH); dst[DNS_MAX_LABEL_LENGTH] = 0; } @@ -118,7 +118,7 @@ strcpy(TftpServerName, serverName); struct tm tm; - TimeToTmUtc(startTime, &tm); + ClkTimeToTmUtc(startTime, &tm); strftime(TftpFileName, DNS_MAX_LABEL_LENGTH+1, fileName, &tm); if (ValuesTrace)