mirror of
https://github.com/esphome/esphome.git
synced 2026-09-24 05:24:14 +00:00
[wifi] Use LOG_STR_LITERAL for scan complete log string literals
Wrap string literal ternary args in LOG_STR_LITERAL to keep them in flash on ESP8266.
This commit is contained in:
@@ -725,7 +725,7 @@ void WiFiComponent::wifi_scan_done_callback_(void *arg, STATUS status) {
|
||||
}
|
||||
}
|
||||
ESP_LOGV(TAG, "Scan complete: %zu found, %zu stored%s", total, this->scan_result_.size(),
|
||||
needs_full ? "" : " (filtered)");
|
||||
needs_full ? LOG_STR_LITERAL("") : LOG_STR_LITERAL(" (filtered)"));
|
||||
this->scan_done_ = true;
|
||||
#ifdef USE_WIFI_SCAN_RESULTS_LISTENERS
|
||||
this->pending_.scan_complete = true; // Defer listener callbacks to main loop
|
||||
|
||||
Reference in New Issue
Block a user