dangerous commets removed from autobaudratecalc

This commit is contained in:
john stone 2012-09-25 07:24:00 +02:00
parent 0bab67cc02
commit c1c545428b

View File

@ -63,15 +63,15 @@ void USART0_Init (void)
// set baudrate
#undef BAUD
#define BAUD 115200
#include <util/setbaud.h><util/setbaud.h>
#include <util/setbaud.h>
UBRR0H = UBRRH_VALUE;
UBRR0L = UBRRL_VALUE;
//#if USE_2X
#if USE_2X
UCSR0A |= (1 << U2X0); // enable double speed operation
//#else
// UCSR0A &= ~(1 << U2X0); // disable double speed operation
//#endif
#else
UCSR0A &= ~(1 << U2X0); // disable double speed operation
#endif
// flush receive buffer