8000 changed type of receiver_buffer_size to uint16_t · losingrose/circuitpython@6e5d70f · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e5d70f

Browse files
committed
changed type of receiver_buffer_size to uint16_t
1 parent 69460b9 commit 6e5d70f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ports/nrf/common-hal/busio/UART.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void uart_reset(void) {
131131
void common_hal_busio_uart_construct (busio_uart_obj_t *self,< B1D9 /div>
132132
const mcu_pin_obj_t * tx, const mcu_pin_obj_t * rx, uint32_t baudrate,
133133
uint8_t bits, uart_parity_t parity, uint8_t stop, mp_float_t timeout,
134-
uint8_t receiver_buffer_size) {
134+
uint16_t receiver_buffer_size) {
135135
// Find a free UART peripheral.
136136
self->uarte = NULL;
137137
for (size_t i = 0 ; i < MP_ARRAY_SIZE(nrfx_uartes); i++) {

shared-bindings/busio/UART.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ typedef enum {
4242
extern void common_hal_busio_uart_construct(busio_uart_obj_t *self,
4343
const mcu_pin_obj_t * tx, const mcu_pin_obj_t * rx, uint32_t baudrate,
4444
uint8_t bits, uart_parity_t parity, uint8_t stop, mp_float_t timeout,
45-
uint8_t receiver_buffer_size);
45+
uint16_t receiver_buffer_size);
4646

4747
extern void common_hal_busio_uart_deinit(busio_uart_obj_t *self);
4848
extern bool common_hal_busio_uart_deinited(busio_uart_obj_t *self);

0 commit comments

Comments
 (0)
0