mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +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) {
|
if (WiFi.status() != WL_CONNECTED) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
int dBm = WiFi.RSSI();
|
int32_t dBm = WiFi.RSSI();
|
||||||
#else
|
#else
|
||||||
int8_t dBm = -70;
|
int32_t dBm = -70;
|
||||||
#endif
|
#endif
|
||||||
if (dBm <= -100) {
|
if (dBm <= -100) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dBm >= -50) {
|
if (dBm >= -50) {
|
||||||
return 100;
|
return 100;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user