Hello! i noticed an unusual behaviour in my code earlier today i am receiving data and sending it back via bluetooth
ISR(USART1_RX_vect) { uint8_t temp_var =0; temp_var= UDR1; if(temp_var > 10) PORTA ^= 0b01000000; //Toggle LED while(((UCSR1A&(1<<UDRE1))==0)); UDR1 =temp_var; }
there is no problem in my communication because what ever i am sending i am getting back without any corruption but The led only toggles when i send in an Even number of string
for example if i Send AA it toggles but when i send AAA it doesnt can anyone help me with this please?