fix broadcom UART ringbuf init
This commit is contained in:
parent
ea15a9118a
commit
e25c195b78
@ -211,7 +211,6 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
|
|||||||
// Use the provided buffer when given.
|
// Use the provided buffer when given.
|
||||||
if (receiver_buffer != NULL) {
|
if (receiver_buffer != NULL) {
|
||||||
ringbuf_init(&self->ringbuf, receiver_buffer, receiver_buffer_size);
|
ringbuf_init(&self->ringbuf, receiver_buffer, receiver_buffer_size);
|
||||||
self->ringbuf = (ringbuf_t) { receiver_buffer, receiver_buffer_size };
|
|
||||||
} else {
|
} else {
|
||||||
// Initially allocate the UART's buffer in the long-lived part of the
|
// Initially allocate the UART's buffer in the long-lived part of the
|
||||||
// heap. UARTs are generally long-lived objects, but the "make long-
|
// heap. UARTs are generally long-lived objects, but the "make long-
|
||||||
|
Loading…
Reference in New Issue
Block a user