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