From 9eb6d2c44bd076fc67f16aee4413c494867d0a0e Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 22 Nov 2020 16:16:37 +0100 Subject: [PATCH] replace int with int32_t --- src/system.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/system.cpp b/src/system.cpp index a20a1765f..c32cd4109 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -438,13 +438,14 @@ int8_t System::wifi_quality() { if (WiFi.status() != WL_CONNECTED) { return -1; } - int dBm = WiFi.RSSI(); + int32_t dBm = WiFi.RSSI(); #else - int8_t dBm = -70; + int32_t dBm = -70; #endif if (dBm <= -100) { return 0; } + if (dBm >= -50) { return 100; }