1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-07 05:42:20 +01:00
This commit is contained in:
J. Nick Koston
2025-08-02 13:01:03 -10:00
parent 9c76847aca
commit 61c97b029c

View File

@@ -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;