mirror of
https://github.com/esphome/esphome.git
synced 2026-01-09 11:40:50 -07:00
[thermopro_ble] Reduce heap allocation with stack-based string formatting (#12999)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user