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
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)))
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)))