From c994c1bd0d9507b243cca6b3986464e77990d890 Mon Sep 17 00:00:00 2001 From: Robin Dietzel Date: Fri, 13 Jan 2023 14:47:23 +0100 Subject: [PATCH] BUGFIX: didnt read cooldown value --- Middlewares/floatpump/Inc/Config_Store.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Middlewares/floatpump/Inc/Config_Store.h b/Middlewares/floatpump/Inc/Config_Store.h index b8738ac..194c7c3 100644 --- a/Middlewares/floatpump/Inc/Config_Store.h +++ b/Middlewares/floatpump/Inc/Config_Store.h @@ -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 RefillBlockEnable = Config_Object(true); Config_Object RefillBelow = Config_Object(false); Config_Object RefillHysteresis = Config_Object(false); - Config_Object RefillCooldown = Config_Object(60); + Config_Object RefillCooldown = Config_Object(60); }; } // floatpump