X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=firmware%2Frs485.c;fp=firmware%2Frs485.c;h=7c9032452930f221ab4c2f0fe0d9468dcd02f459;hb=d8f201d671212ce6ea71de49e852776e5f03f4e7;hp=7aec92c8e54a4abf1f31691b411e44a5aac4a167;hpb=63da2000b15179f9c6c42965f9cc0115ed95c5f7;p=openparking.git diff --git a/firmware/rs485.c b/firmware/rs485.c index 7aec92c..7c90324 100644 --- a/firmware/rs485.c +++ b/firmware/rs485.c @@ -108,6 +108,7 @@ ISR(USART_UDRE_vect) { cli(); if (tx_head == tx_tail) { + UCSR0A |= _BV(TXC0); // clear the pending TXC flag UCSR0B |= _BV(TXCIE0); // enable xmit complete irq UCSR0B &= ~_BV(UDRIE0); } else {