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