BUGFIX: didnt read cooldown value

This commit is contained in:
Robin Dietzel 2023-01-13 14:47:23 +01:00
parent a1a0a5a6cf
commit c994c1bd0d

View File

@ -65,7 +65,7 @@ namespace floatpump {
void loadFromFlash() {
uint32_t data[11];
ReadFromFlash(startAddr, data, 10);
ReadFromFlash(startAddr, data, 11);
TankCalibLow.setValue(data[0]);
TankCalibHigh.setValue(data[1]);
TankMinLevel.setValue(data[2]);
@ -115,7 +115,7 @@ namespace floatpump {
Config_Object<bool> RefillBlockEnable = Config_Object<bool>(true);
Config_Object<uint8_t> RefillBelow = Config_Object<uint8_t>(false);
Config_Object<uint8_t> RefillHysteresis = Config_Object<uint8_t>(false);
Config_Object<uint32_t> RefillCooldown = Config_Object<uint32_t>(60);
Config_Object <uint16_t> RefillCooldown = Config_Object<uint16_t>(60);
};
} // floatpump