[thermopro_ble] Reduce heap allocation with stack-based string formatting (#12999)
This commit is contained in:
1 parent
2d4cd4ce7e
commit
c3e6a4178c
1 file changed
+2
-1
@@ -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