Gast
#2413834
Hallo
hab das problem das mein Endzeichen nicht erkannt wird.
ISR(USART_RXC_vect)
{
static uint8_t str_count=0;
unsigned char nextChar;
nextChar = UDR;
if (uart_string[str_count]=='\n')
{
uart_string[str_count] = nextChar;
str_count++;
}
else
{
uart_string[str_count] =nextChar;
str_count=0;
}
}
Jemand ne Idee? Beim Microcontroller handelt es sich um einen Atmega8.