[BT] Fix rssi value type

value can be be negative or positive from the user MQTT command
This commit is contained in:
Florian committed 2020-09-17 13:45:25 -05:00
1 parent 4b265384b2
commit 55436c29fa
1 file changed
+1 -1
+1 -1
View File
@@ -1349,7 +1349,7 @@ void MQTTtoBT(char* topicOri, JsonObject& BTdata) { // json object decoding
// storing Min RSSI for further use if needed
Log.trace(F("Previous minrssi: %d" CR), minRssi);
// set Min RSSI if present if not setting default value
minRssi = abs((unsigned int)BTdata["minrssi"]);
minRssi = abs((int)BTdata["minrssi"]);
Log.notice(F("New minrssi: %d" CR), minRssi);
}
# ifdef ESP32