We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a8888d commit 4c4906fCopy full SHA for 4c4906f
cores/esp32/esp32-hal-uart.c
@@ -497,6 +497,8 @@ uart_t *uartBegin(
497
log_v("UART%d not installed. Starting installation", uart_nr);
498
}
499
uart_config_t uart_config;
500
+ memset(&uart_config, 0, sizeof(uart_config_t));
501
+ uart_config.flags.backup_before_sleep = false; // new flag from IDF v5.3
502
uart_config.data_bits = (config & 0xc) >> 2;
503
uart_config.parity = (config & 0x3);
504
uart_config.stop_bits = (config & 0x30) >> 4;
0 commit comments