esp32_serial.c: Don't fake an interrupt when interrupts are not

suppressed.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche 2021-08-24 16:57:36 +02:00 committed by Alan Carvalho de Assis
parent cca3fa36ce
commit f47d28c108
1 changed files with 1 additions and 0 deletions

View File

@ -1726,6 +1726,7 @@ static void esp32_txint(struct uart_dev_s *dev, bool enable)
modifyreg32(UART_INT_ENA_REG(priv->config->id),
0, (UART_TX_DONE_INT_ENA | UART_TXFIFO_EMPTY_INT_ENA));
#else
/* Fake a TX interrupt here by just calling uart_xmitchars() with
* interrupts disabled (note this may recurse).
*/