[airthings_wave_base, airthings_ble] Use stack-based string formatting in logging (#12989)

This commit is contained in:
J. Nick Koston
2026-01-05 17:22:27 -10:00
committed by GitHub
parent 95573bc106
commit 7ba4dc0f1a
2 changed files with 14 additions and 7 deletions
@@ -20,7 +20,8 @@ bool AirthingsListener::parse_device(const esp32_ble_tracker::ESPBTDevice &devic
sn |= ((uint32_t) it.data[2] << 16);
sn |= ((uint32_t) it.data[3] << 24);
ESP_LOGD(TAG, "Found AirThings device Serial:%" PRIu32 " (MAC: %s)", sn, device.address_str().c_str());
char addr_buf[MAC_ADDRESS_PRETTY_BUFFER_SIZE];
ESP_LOGD(TAG, "Found AirThings device Serial:%" PRIu32 " (MAC: %s)", sn, device.address_str_to(addr_buf));
return true;
}
}