mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_system esp32c3: Fix uart flush on entering deep sleep
This commit is contained in:
parent
1cfd65f8c4
commit
4026e7b250
@ -227,7 +227,7 @@ static void IRAM_ATTR flush_uarts(void)
|
||||
for (int i = 0; i < SOC_UART_NUM; ++i) {
|
||||
#ifdef CONFIG_IDF_TARGET_ESP32
|
||||
esp_rom_uart_tx_wait_idle(i);
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
|
||||
#else
|
||||
if (periph_ll_periph_enabled(PERIPH_UART0_MODULE + i)) {
|
||||
esp_rom_uart_tx_wait_idle(i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user