esp_system esp32c3: Fix uart flush on entering deep sleep

This commit is contained in:
Angus Gratton 2021-01-16 16:58:55 +11:00 committed by bot
parent 1cfd65f8c4
commit 4026e7b250

View File

@ -227,7 +227,7 @@ static void IRAM_ATTR flush_uarts(void)
for (int i = 0; i < SOC_UART_NUM; ++i) { for (int i = 0; i < SOC_UART_NUM; ++i) {
#ifdef CONFIG_IDF_TARGET_ESP32 #ifdef CONFIG_IDF_TARGET_ESP32
esp_rom_uart_tx_wait_idle(i); 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)) { if (periph_ll_periph_enabled(PERIPH_UART0_MODULE + i)) {
esp_rom_uart_tx_wait_idle(i); esp_rom_uart_tx_wait_idle(i);
} }