Skip to content

Commit 61b4df8

Browse files
committed
fix(uart): unused warnings
Fixes stm32duino#2718. Signed-off-by: Frederic Pillon <[email protected]>
1 parent 6a98725 commit 61b4df8

File tree

1 file changed

+4
-0
lines changed
  • libraries/SrcWrapper/src/stm32

1 file changed

+4
-0
lines changed

libraries/SrcWrapper/src/stm32/uart.c

+4
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,10 @@ bool uart_init(serial_t *obj, uint32_t baudrate, uint32_t databits, uint32_t par
438438
huart->AdvancedInit.DataInvert = UART_ADVFEATURE_DATAINV_ENABLE;
439439
}
440440
#endif
441+
#else /* UART_ADVFEATURE_NO_INIT */
442+
UNUSED(rx_invert);
443+
UNUSED(tx_invert);
444+
UNUSED(data_invert);
441445
#endif
442446
#ifdef UART_ONE_BIT_SAMPLE_DISABLE
443447
huart->Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;

0 commit comments

Comments
 (0)