package update

This commit is contained in:
Proddy
2023-09-25 09:14:04 +02:00
parent 917e268ac9
commit 14f2cd4bee

View File

@@ -331,7 +331,7 @@ bool DeviceValue::get_custom_min(int16_t & val) {
if (fahrenheit) { if (fahrenheit) {
v = (v - (32 * (fahrenheit - 1))) / 1.8; // reset to °C v = (v - (32 * (fahrenheit - 1))) / 1.8; // reset to °C
} }
if (max > 0 && v > (int16_t)max) { if (max > 0 && v > max) {
return false; return false;
} }
val = v; val = v;