mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
lint warning work-around
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user