[thermopro_ble] Reduce heap allocation with stack-based string formatting (#12999)

This commit is contained in:
J. Nick Koston
2026-01-05 17:16:14 -10:00
committed by GitHub
parent 2d4cd4ce7e
commit c3e6a4178c

View File

@@ -47,7 +47,8 @@ bool ThermoProBLE::parse_device(const esp32_ble_tracker::ESPBTDevice &device) {
return false;
}
ESP_LOGVV(TAG, "parse_device(): MAC address %s found.", device.address_str().c_str());
char addr_buf[MAC_ADDRESS_PRETTY_BUFFER_SIZE];
ESP_LOGVV(TAG, "parse_device(): MAC address %s found.", device.address_str_to(addr_buf));
// publish signal strength
float signal_strength = float(device.get_rssi());