From 47c56491990c5ec9309eb75bbd23b9d5171407dd Mon Sep 17 00:00:00 2001 From: xmk-123 <73211306+xmk-123@users.noreply.github.com> Date: Wed, 21 Oct 2020 00:13:23 -0400 Subject: [PATCH] Update IR_Receiver_Test.cpp --- IR_Receiver_Test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}