Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 1-wire clock crypto fram log lpc1768 net web wiz mbed
Diff: settings/settings.c
- Revision:
- 5:3579001bea1b
- Parent:
- 3:f1464bf461c1
--- a/settings/settings.c Thu May 13 19:09:54 2021 +0000
+++ b/settings/settings.c Thu May 20 14:34:51 2021 +0000
@@ -241,6 +241,8 @@
static int iHallRom;
static int iOverrideCancelHour;
static int iOverrideCancelMinute;
+static int iHotWaterProtectTemp;
+static int iHotWaterProtectOn;
static int iNightTemperature;
static int iFrostTemperature;
@@ -286,6 +288,10 @@
void GetOverrideCancelHour (uint8_t* pValue) { FramRead (iOverrideCancelHour, 1, pValue); }
void SetOverrideCancelMinute (uint8_t* pValue) { FramWrite(iOverrideCancelMinute, 1, pValue); }
void GetOverrideCancelMinute (uint8_t* pValue) { FramRead (iOverrideCancelMinute, 1, pValue); }
+void SetHotWaterProtectTemp (int8_t* pValue) { FramWrite(iHotWaterProtectTemp, 1, pValue); }
+void GetHotWaterProtectTemp (int8_t* pValue) { FramRead (iHotWaterProtectTemp, 1, pValue); }
+void SetHotWaterProtectOn (char* pValue) { FramWrite(iHotWaterProtectOn, 1, pValue); }
+void GetHotWaterProtectOn (char* pValue) { FramRead (iHotWaterProtectOn, 1, pValue); }
void SetNightTemperature (int16_t* pValue) { FramWrite(iNightTemperature, 2, pValue); }
void GetNightTemperature (int16_t* pValue) { FramRead (iNightTemperature, 2, pValue); }
void SetFrostTemperature (int16_t* pValue) { FramWrite(iFrostTemperature, 2, pValue); }
@@ -344,7 +350,8 @@
address = FramAllocate(8); if (address < 0) return -1; iHallRom = address;
address = FramAllocate(1); if (address < 0) return -1; iOverrideCancelHour = address;
address = FramAllocate(1); if (address < 0) return -1; iOverrideCancelMinute = address;
- FramAllocate(2); //Spare two bytes
+ address = FramAllocate(1); if (address < 0) return -1; iHotWaterProtectTemp = address;
+ address = FramAllocate(1); if (address < 0) return -1; iHotWaterProtectOn = address;
address = FramAllocate(2); if (address < 0) return -1; iNightTemperature = address;
address = FramAllocate(2); if (address < 0) return -1; iFrostTemperature = address;
address = FramAllocate(7); if (address < 0) return -1; iProgramDay = address;
@@ -371,6 +378,8 @@
def1 = 0; FramWrite(iWinter, 1, &def1);
def1 = 23; FramWrite(iOverrideCancelHour, 1, &def1);
def1 = 0; FramWrite(iOverrideCancelMinute, 1, &def1);
+ def1 = 50; FramWrite(iHotWaterProtectTemp, 1, &def1);
+ def1 = 0; FramWrite(iHotWaterProtectOn, 1, &def1);
def2 = 15; FramWrite(iNightTemperature, 2, &def2);
def2 = 8; FramWrite(iFrostTemperature, 2, &def2);
def1 = 2; FramWrite(iProgramNewDayHour, 1, &def1);