mirror of
https://github.com/esphome/esphome.git
synced 2025-09-07 13:52:20 +01:00
preen
This commit is contained in:
@@ -507,7 +507,7 @@ void WiFiComponent::start_scanning() {
|
|||||||
|
|
||||||
// Helper function for WiFi scan result comparison
|
// Helper function for WiFi scan result comparison
|
||||||
// Returns true if 'a' should be placed before 'b' in the sorted order
|
// Returns true if 'a' should be placed before 'b' in the sorted order
|
||||||
static bool wifi_scan_result_is_better(const WiFiScanResult &a, const WiFiScanResult &b) {
|
[[nodiscard]] inline static bool wifi_scan_result_is_better(const WiFiScanResult &a, const WiFiScanResult &b) {
|
||||||
// Matching networks always come before non-matching
|
// Matching networks always come before non-matching
|
||||||
if (a.get_matches() && !b.get_matches())
|
if (a.get_matches() && !b.get_matches())
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user