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

Revision:
90:1c504a7b465e
Parent:
57:72c1c1357861
Child:
94:ded7c74d49fb
--- a/heating/values.c	Wed Apr 08 18:28:23 2020 +0000
+++ b/heating/values.c	Thu Jun 04 16:37:59 2020 +0000
@@ -118,7 +118,12 @@
     strcpy(TftpServerName, serverName);
     struct tm tm;
     ClkTimeToTmUtc(startTime, &tm);
-    strftime(TftpFileName, DNS_MAX_LABEL_LENGTH+1, fileName, &tm);
+    int len = strftime(TftpFileName, DNS_MAX_LABEL_LENGTH+1, fileName, &tm);
+    if (len == 0)
+    {
+        LogTimeF("Values - cannot make filename from template '%s'\r\n", count, fileName);
+        return;
+    }
 
     if (ValuesTrace)
     {