mirror of
https://github.com/esphome/esphome.git
synced 2026-09-01 18:46:02 +00:00
649aec69d7d6a7657714899500efd445dbac1587
Replace the heap-allocated tx_buffer_ (new char[]) with a compile-time sized inline array using ESPHOME_LOGGER_TX_BUFFER_SIZE define. This eliminates a heap allocation during Logger construction, saving ~513 bytes of heap on memory-constrained devices like BK72xx. Changes: - Add ESPHOME_LOGGER_TX_BUFFER_SIZE define set from Python config - Change tx_buffer_ from char* to char[ESPHOME_LOGGER_TX_BUFFER_SIZE+1] - Remove tx_buffer_size_ member field - Update constructor to no longer take tx_buffer_size parameter - Update all references to use the compile-time constant
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
585 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
