diff --git a/IR_Receiver_Test.cpp b/IR_Receiver_Test.cpp index 4554f3e..6a112bd 100644 --- a/IR_Receiver_Test.cpp +++ b/IR_Receiver_Test.cpp @@ -17,7 +17,7 @@ // define some macros #define BAUD 9600 // define baud -#define UBRR ((F_CPU)/(BAUD*16UL)-1) // set baud rate value for UBRR +#define UBRR (((F_CPU)/(BAUD*16UL))-1) // set baud rate value for UBRR // function to initialize UART void uart_init (void) @@ -91,4 +91,4 @@ int main(void) _delay_ms(50); } -} \ No newline at end of file +}