From 3b2a89d9f4d1aff1478596d1271e1d28b260498b Mon Sep 17 00:00:00 2001 From: MichaelDvP <59284019+MichaelDvP@users.noreply.github.com> Date: Wed, 15 Sep 2021 10:54:57 +0200 Subject: [PATCH] solar turnOnOffDiff allow setting decimals #107 --- src/devices/solar.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/devices/solar.cpp b/src/devices/solar.cpp index 84c58cd59..4cd2f269c 100644 --- a/src/devices/solar.cpp +++ b/src/devices/solar.cpp @@ -530,8 +530,8 @@ bool Solar::set_wwMinTemp(const char * value, const int8_t id) { } bool Solar::set_TurnoffDiff(const char * value, const int8_t id) { - int temperature; - if (!Helpers::value2number(value, temperature)) { + float temperature; + if (!Helpers::value2float(value, temperature)) { return false; } if (flags() == EMSdevice::EMS_DEVICE_FLAG_SM10) { @@ -543,8 +543,8 @@ bool Solar::set_TurnoffDiff(const char * value, const int8_t id) { } bool Solar::set_TurnonDiff(const char * value, const int8_t id) { - int temperature; - if (!Helpers::value2number(value, temperature)) { + float temperature; + if (!Helpers::value2float(value, temperature)) { return false; } if (flags() == EMSdevice::EMS_DEVICE_FLAG_SM10) {