From f72a9a15fbf4ffd444dd63f8ec52a7b91aea750a Mon Sep 17 00:00:00 2001 From: pitts-mo Date: Sat, 14 Dec 2024 11:15:29 -0500 Subject: [PATCH] Update uart.c -resolve USE_TRAMP build warnings (race v3) Moved #endif past redundant code when USE_TRAMP is defined. --- src/uart.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/uart.c b/src/uart.c index fed15f6..9afb68a 100644 --- a/src/uart.c +++ b/src/uart.c @@ -50,10 +50,9 @@ void uart_init() { BAUDRATE = 0; #else BAUDRATE = I2C_Read8(ADDR_EEPROM, EEP_ADDR_BAUDRATE); -#endif if (BAUDRATE > 1) BAUDRATE = 0; - +#endif uart_set_baudrate(BAUDRATE); } @@ -289,4 +288,4 @@ void SUART_tx(uint8_t *tbuf, uint8_t len) { sa_status = SA_ST_IDLE; uart_set_baudrate(BAUDRATE); } -#endif \ No newline at end of file +#endif