diff --git a/mote/v2/avr/uart.c b/mote/v2/avr/uart.c index 7a81a47..7e4ff8d 100644 --- a/mote/v2/avr/uart.c +++ b/mote/v2/avr/uart.c @@ -238,7 +238,7 @@ u08 uartSendBuffer(char *buffer, u16 nBytes) } } */ -// UART Transmit Complete Interrupt Handler +// UART Data Register Empty Interrupt Handler UART_INTERRUPT_HANDLER(SIG_UART_DATA) { // check if buffered tx is enabled @@ -247,6 +247,8 @@ UART_INTERRUPT_HANDLER(SIG_UART_DATA) // check if there's data left in the buffer if(uartTxBuffer.datalength) { + // set RS-485 into transmit mode + PORTD |= (1<