diff --git a/firmware/lib/usart.c b/firmware/lib/usart.c index 0f738f5..e0b44a1 100644 --- a/firmware/lib/usart.c +++ b/firmware/lib/usart.c @@ -63,15 +63,15 @@ void USART0_Init (void) // set baudrate #undef BAUD #define BAUD 115200 - #include + #include UBRR0H = UBRRH_VALUE; UBRR0L = UBRRL_VALUE; - //#if USE_2X - UCSR0A |= (1 << U2X0); // enable double speed operation - //#else - // UCSR0A &= ~(1 << U2X0); // disable double speed operation - //#endif + #if USE_2X + UCSR0A |= (1 << U2X0); // enable double speed operation + #else + UCSR0A &= ~(1 << U2X0); // disable double speed operation + #endif // flush receive buffer