[logger] Remove unused UART event queue allocation

The logger's uart_driver_install() was allocating a 10-item FreeRTOS
event queue but passing nullptr as the queue handle, meaning nothing
could ever read from it. Setting the queue size to 0 saves ~212 bytes
of heap.
This commit is contained in:
J. Nick Koston
2026-02-20 19:18:38 -06:00
parent 1d3054ef5e
commit 0fa7ba6837

View File

@@ -78,8 +78,7 @@ void init_uart(uart_port_t uart_num, uint32_t baud_rate, int tx_buffer_size) {
uart_config.source_clk = UART_SCLK_DEFAULT;
uart_param_config(uart_num, &uart_config);
const int uart_buffer_size = tx_buffer_size;
// Install UART driver using an event queue here
uart_driver_install(uart_num, uart_buffer_size, uart_buffer_size, 10, nullptr, 0);
uart_driver_install(uart_num, uart_buffer_size, uart_buffer_size, 0, nullptr, 0);
}
void Logger::pre_setup() {