mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
solar turnOnOffDiff allow setting decimals #107
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user