mirror of
https://github.com/esphome/esphome.git
synced 2025-09-17 18:52:19 +01:00
[wifi] Optimize WiFi MAC formatting to eliminate sprintf dependency
This commit is contained in:
@@ -593,7 +593,7 @@ void WiFiComponent::check_scanning_finished() {
|
||||
for (auto &res : this->scan_result_) {
|
||||
char bssid_s[18];
|
||||
auto bssid = res.get_bssid();
|
||||
format_mac_addr_upper(bssid, bssid_s);
|
||||
format_mac_addr_upper(bssid.data(), bssid_s);
|
||||
|
||||
if (res.get_matches()) {
|
||||
ESP_LOGI(TAG, "- '%s' %s" LOG_SECRET("(%s) ") "%s", res.get_ssid().c_str(),
|
||||
|
Reference in New Issue
Block a user