Skip to content

Commit

Permalink
Update uart.c -resolve USE_TRAMP build warnings (race v3)
Browse files Browse the repository at this point in the history
Moved #endif past redundant code when USE_TRAMP is defined.
  • Loading branch information
pitts-mo authored Dec 14, 2024
1 parent 8f7da85 commit f72a9a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -289,4 +288,4 @@ void SUART_tx(uint8_t *tbuf, uint8_t len) {
sa_status = SA_ST_IDLE;
uart_set_baudrate(BAUDRATE);
}
#endif
#endif

0 comments on commit f72a9a1

Please sign in to comment.