Skip to content

Commit

Permalink
Fix a bug introduce in a recent commit
Browse files Browse the repository at this point in the history
  • Loading branch information
janakj committed Mar 25, 2023
1 parent e820359 commit 9cad192
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lpuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,10 @@ void lpuart_before_stop(void)
{
pause_dma();
HAL_UART_DMAPause(&port);
if (attached) LL_LPUART_EnableIT_WKUP(port.Instance);
#if DETACHABLE_LPUART == 1
if (attached)
#endif
LL_LPUART_EnableIT_WKUP(port.Instance);
}


Expand Down

0 comments on commit 9cad192

Please sign in to comment.