mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +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) {
|
bool Solar::set_TurnoffDiff(const char * value, const int8_t id) {
|
||||||
int temperature;
|
float temperature;
|
||||||
if (!Helpers::value2number(value, temperature)) {
|
if (!Helpers::value2float(value, temperature)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (flags() == EMSdevice::EMS_DEVICE_FLAG_SM10) {
|
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) {
|
bool Solar::set_TurnonDiff(const char * value, const int8_t id) {
|
||||||
int temperature;
|
float temperature;
|
||||||
if (!Helpers::value2number(value, temperature)) {
|
if (!Helpers::value2float(value, temperature)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (flags() == EMSdevice::EMS_DEVICE_FLAG_SM10) {
|
if (flags() == EMSdevice::EMS_DEVICE_FLAG_SM10) {
|
||||||
|
|||||||
Reference in New Issue
Block a user