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: fram/fram.c
- Revision:
- 76:3ef2a46c8b1e
- Parent:
- 0:3c04f4b47041
diff -r cc9a1e104e0e -r 3ef2a46c8b1e fram/fram.c --- a/fram/fram.c Thu Sep 26 07:21:09 2019 +0000 +++ b/fram/fram.c Fri Sep 27 11:33:30 2019 +0000 @@ -122,7 +122,7 @@ int defaultHasContent = 0; char* pFrom = (char*)pDefault; char* pTo = (char*)pValue; - for (int i = 0; i < len; i++); + for (int i = 0; i < len; i++) { if (*pFrom) defaultHasContent = 1; *pTo++ = *pFrom++;