We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3660023 commit c82b84eCopy full SHA for c82b84e
atmel-samd/common-hal/busio/UART.c
@@ -105,8 +105,9 @@ static void _busio_uart_interrupt_handler(uint8_t instance)
105
self->buffer_size++;
106
107
if (module->character_size == USART_CHARACTER_SIZE_9BIT) {
108
+ buffer_end = (self->buffer_start + self->buffer_size) % self->buffer_length;
109
/* 9-bit data, write next received byte to the buffer */
- self->buffer[buffer_end + 1] = (received_data >> 8);
110
+ self->buffer[buffer_end] = (received_data >> 8);
111
112
}
113
0 commit comments