Skip to content

Commit

Permalink
lint warning work-around
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Sep 23, 2023
1 parent 365c959 commit 41228e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emsdevicevalue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 > max) {
if (max > 0 && v > (int16_t)max) {
return false;
}
val = v;
Expand Down

0 comments on commit 41228e8

Please sign in to comment.