p7zip: update to 17.06
[oi-userland.git] / components / network / domoticz / patches / 007-TTNMQTT.cpp.patch
blobb5d6eb3b818f1cc28ab1b9f7a1424aa99c8b6779
1 --- domoticz-2022.1/hardware/TTNMQTT.cpp.bak Wed Jun 15 09:10:42 2022
2 +++ domoticz-2022.1/hardware/TTNMQTT.cpp Wed Jun 15 09:17:48 2022
3 @@ -841,7 +841,7 @@
5 if(!bGwGeo && bPrevGwGeo)
7 - if (floor((lrssi/10)) > floor((gwrssi/10)))
8 + if (floor(static_cast<double>(lrssi/10)) > floor(static_cast<double>(gwrssi/10)))
10 bBetter = true;
12 @@ -871,7 +871,7 @@
14 // The previous found closest GW has Geo info and this one doesn't
15 // If the signals are very simular, we prefer the one with Geo
16 - if (floor((lrssi/10)) > floor((gwrssi/10)))
17 + if (floor(static_cast<double>(lrssi/10)) > floor(static_cast<double>(gwrssi/10)))
19 bBetter = true;