Skip to content

Commit 15e87ae

Browse files
authored
fix(uart): sleep retention
sets new flag from IDF 5.3 that causes error with Serial.begin(115200).
1 parent 0a8888d commit 15e87ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp32/esp32-hal-uart.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ uart_t *uartBegin(
497497
log_v("UART%d not installed. Starting installation", uart_nr);
498498
}
499499
uart_config_t uart_config;
500+
uart_config.flags.backup_before_sleep = false; // necessary within IDF 5.3
500501
uart_config.data_bits = (config & 0xc) >> 2;
501502
uart_config.parity = (config & 0x3);
502503
uart_config.stop_bits = (config & 0x30) >> 4;

0 commit comments

Comments
 (0)