mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 19:50:36 +08:00
Update wificonfig.cpp
Fix signal is 0% in AP list when equal to minimal acceptable RSSI
This commit is contained in:
parent
9726f3e17e
commit
aaca73fe56
@ -98,7 +98,7 @@ bool WiFiConfig::isPasswordValid (const char * password)
|
|||||||
|
|
||||||
int32_t WiFiConfig::getSignal (int32_t RSSI)
|
int32_t WiFiConfig::getSignal (int32_t RSSI)
|
||||||
{
|
{
|
||||||
if (RSSI <= -78) {
|
if (RSSI < MIN_RSSI) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (RSSI >= -50) {
|
if (RSSI >= -50) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user