diff --git a/src/emsdevicevalue.cpp b/src/emsdevicevalue.cpp index 29d4e7d2e..dd15a653b 100644 --- a/src/emsdevicevalue.cpp +++ b/src/emsdevicevalue.cpp @@ -340,7 +340,7 @@ bool DeviceValue::get_custom_min(int16_t & val) { if (fahrenheit) { v = (v - (32 * (fahrenheit - 1))) / 1.8; // reset to °C } - if (v > max) { + if (max > 0 && v > max) { return false; } val = v;