From c1c545428b901126688d135274f45299e088b64d Mon Sep 17 00:00:00 2001 From: john stone Date: Tue, 25 Sep 2012 07:24:00 +0200 Subject: [PATCH] dangerous commets removed from autobaudratecalc --- firmware/lib/usart.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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