mirror of
https://github.com/esphome/esphome.git
synced 2025-11-16 14:55:50 +00:00
wip
This commit is contained in:
@@ -709,10 +709,6 @@ void WiFiComponent::start_scanning() {
|
|||||||
// Priority is decreased when a BSSID fails to connect, so lower priority = previously failed
|
// Priority is decreased when a BSSID fails to connect, so lower priority = previously failed
|
||||||
if (a.get_priority() != b.get_priority())
|
if (a.get_priority() != b.get_priority())
|
||||||
return a.get_priority() > b.get_priority();
|
return a.get_priority() > b.get_priority();
|
||||||
|
|
||||||
// If priorities are equal, prefer stronger signal
|
|
||||||
// This helps with mesh networks and multiple APs with same SSID
|
|
||||||
return a.get_rssi() > b.get_rssi();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Both don't match - sort by signal strength
|
// Both don't match - sort by signal strength
|
||||||
|
|||||||
Reference in New Issue
Block a user