From 4d05035661dc69e2010b6ca4b8b31e98f855d4ec Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Thu, 22 Jun 2023 21:33:38 +0200 Subject: [PATCH] fix DPL not reading full solar passthrough voltage thresholds (#265) the defaults for solar passthrough voltage thresholds shall be floats, so the user can store float values to the config. otherwise, float values can and will be stored, but when reading them, the defaults will be applied as the defaults are of an incompatible type. --- include/defaults.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/defaults.h b/include/defaults.h index fd596bb4c..3f58741f8 100644 --- a/include/defaults.h +++ b/include/defaults.h @@ -124,8 +124,8 @@ #define POWERLIMITER_VOLTAGE_LOAD_CORRECTION_FACTOR 0.001 #define POWERLIMITER_RESTART_HOUR -1 #define POWERLIMITER_FULL_SOLAR_PASSTHROUGH_SOC 100 -#define POWERLIMITER_FULL_SOLAR_PASSTHROUGH_START_VOLTAGE 100 -#define POWERLIMITER_FULL_SOLAR_PASSTHROUGH_STOP_VOLTAGE 100 +#define POWERLIMITER_FULL_SOLAR_PASSTHROUGH_START_VOLTAGE 100.0 +#define POWERLIMITER_FULL_SOLAR_PASSTHROUGH_STOP_VOLTAGE 100.0 #define BATTERY_ENABLED false