[ruuvi_ble] Reduce heap allocation with stack-based string formatting

This commit is contained in:
J. Nick Koston
2026-01-05 09:12:36 -10:00
parent fc7e55bfdc
commit 647c727708

View File

@@ -99,7 +99,8 @@ bool RuuviListener::parse_device(const esp32_ble_tracker::ESPBTDevice &device) {
if (!res.has_value())
return false;
ESP_LOGD(TAG, "Got RuuviTag (%s):", device.address_str().c_str());
char addr_buf[MAC_ADDRESS_PRETTY_BUFFER_SIZE];
ESP_LOGD(TAG, "Got RuuviTag (%s):", device.address_str_to(addr_buf));
if (res->humidity.has_value()) {
ESP_LOGD(TAG, " Humidity: %.2f%%", *res->humidity);