lint warning work-around

This commit is contained in:
Proddy
2023-09-23 18:41:37 +02:00
parent 365c95991b
commit 41228e894a

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 > max) { if (max > 0 && v > (int16_t)max) {
return false; return false;
} }
val = v; val = v;