mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
replace int with int32_t
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user