diff --git a/Middlewares/floatpump/Inc/Config_Store.h b/Middlewares/floatpump/Inc/Config_Store.h index 662fa47..b8738ac 100644 --- a/Middlewares/floatpump/Inc/Config_Store.h +++ b/Middlewares/floatpump/Inc/Config_Store.h @@ -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; };