BUGFIX: didnt store cooldown value
This commit is contained in:
parent
97d690fac1
commit
a1a0a5a6cf
@ -44,7 +44,7 @@ namespace floatpump {
|
||||
}
|
||||
|
||||
void saveToFlash() {
|
||||
uint32_t data[10];
|
||||
uint32_t data[11];
|
||||
data[0] = TankCalibLow.getValue();
|
||||
data[1] = TankCalibHigh.getValue();
|
||||
data[2] = TankMinLevel.getValue();
|
||||
@ -55,15 +55,16 @@ namespace floatpump {
|
||||
data[7] = RefillBlockEnable.getValue();
|
||||
data[8] = RefillBelow.getValue();
|
||||
data[9] = RefillHysteresis.getValue();
|
||||
data[10] = RefillCooldown.getValue();
|
||||
|
||||
StoreInFlash(startAddr, data, 10);
|
||||
StoreInFlash(startAddr, data, 11);
|
||||
return;
|
||||
};
|
||||
|
||||
void resetDefaults();
|
||||
|
||||
void loadFromFlash() {
|
||||
uint32_t data[10];
|
||||
uint32_t data[11];
|
||||
ReadFromFlash(startAddr, data, 10);
|
||||
TankCalibLow.setValue(data[0]);
|
||||
TankCalibHigh.setValue(data[1]);
|
||||
@ -75,6 +76,7 @@ namespace floatpump {
|
||||
RefillBlockEnable.setValue(data[7]);
|
||||
RefillBelow.setValue(data[8]);
|
||||
RefillHysteresis.setValue(data[9]);
|
||||
RefillCooldown.setValue(data[10]);
|
||||
return;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user