mirror of https://github.com/arendst/Tasmota.git
Fix wifi strongest signal detection
Fix wifi strongest signal detection (#4704)
This commit is contained in:
parent
a17a40b5f3
commit
a80fcd98d7
|
@ -1,6 +1,7 @@
|
|||
/* 6.4.0.1 20181217
|
||||
* Add support for AZ-Instrument 7798 CO2 meter/datalogger (#4672)
|
||||
* Change RAM usage BMP/BME I2C sensors
|
||||
* Fix wifi strongest signal detection (#4704)
|
||||
*
|
||||
* 6.4.0 20181217
|
||||
* Change GUI Configure Module by using AJAX for data fetch to cut page size (and memory use) by 40%
|
||||
|
|
|
@ -249,7 +249,7 @@ void WifiBeginAfterScan()
|
|||
uint8_t* bssid = WiFi.BSSID(); // Get current bssid
|
||||
memcpy((void*) &wifi_bssid, (void*) bssid, sizeof(wifi_bssid));
|
||||
best_network_db = WiFi.RSSI(); // Get current rssi and add threshold
|
||||
if (best_network_db < -WIFI_RSSI_THRESHOLD) { best_network_db +WIFI_RSSI_THRESHOLD; }
|
||||
if (best_network_db < -WIFI_RSSI_THRESHOLD) { best_network_db += WIFI_RSSI_THRESHOLD; }
|
||||
wifi_scan_state = 3;
|
||||
}
|
||||
// Init scan
|
||||
|
|
Loading…
Reference in New Issue