We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66c9ddb commit d2100bbCopy full SHA for d2100bb
cores/esp32/esp32-hal-uart.c
@@ -497,7 +497,8 @@ uart_t *uartBegin(
497
log_v("UART%d not installed. Starting installation", uart_nr);
498
}
499
uart_config_t uart_config;
500
- uart_config.flags.backup_before_sleep = false; // necessary within IDF v5.3
+ 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