From 9cad19235d2e8138ae1f2ef335663ac84c801775 Mon Sep 17 00:00:00 2001 From: Jan Janak Date: Fri, 24 Mar 2023 20:59:17 -0400 Subject: [PATCH] Fix a bug introduce in a recent commit --- src/lpuart.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lpuart.c b/src/lpuart.c index 8d080aa..0a10fda 100644 --- a/src/lpuart.c +++ b/src/lpuart.c @@ -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); }