mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
package update
This commit is contained in:
@@ -331,7 +331,7 @@ bool DeviceValue::get_custom_min(int16_t & val) {
|
||||
if (fahrenheit) {
|
||||
v = (v - (32 * (fahrenheit - 1))) / 1.8; // reset to °C
|
||||
}
|
||||
if (max > 0 && v > (int16_t)max) {
|
||||
if (max > 0 && v > max) {
|
||||
return false;
|
||||
}
|
||||
val = v;
|
||||
|
||||
Reference in New Issue
Block a user