Skip to content

Commit

Permalink
Merge pull request #230 from pitts-mo/patch-1
Browse files Browse the repository at this point in the history
Update uart.c -resolve USE_TRAMP build warnings (race v3)
  • Loading branch information
ligenxxxx authored Dec 19, 2024
2 parents 7f496a3 + f72a9a1 commit cfe0d6a
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 cfe0d6a

Please sign in to comment.