This commit is contained in:
J. Nick Koston
2026-02-11 14:43:24 -06:00
parent 322fe205ab
commit 6a5015b2df
2 changed files with 3 additions and 1 deletions

View File

@@ -480,7 +480,7 @@ bool WiFiComponent::matches_configured_network_(const char *ssid, const uint8_t
continue;
}
// Match by SSID
if (sta.ssid_ == StringRef(ssid)) {
if (sta.ssid_ == ssid) {
return true;
}
}

View File

@@ -200,6 +200,8 @@ class CompactString {
bool operator!=(const CompactString &other) const { return !(*this == other); }
bool operator==(const StringRef &other) const;
bool operator!=(const StringRef &other) const { return !(*this == other); }
bool operator==(const char *other) const { return *this == StringRef(other); }
bool operator!=(const char *other) const { return !(*this == other); }
protected:
char *get_heap_ptr_() const {