8000 updated samd and esp8266 ports · losingrose/circuitpython@4c72a39 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c72a39

Browse files
committed
updated samd and esp8266 ports
1 parent 6e5d70f commit 4c72a39

File tree

2 files changed

+2
-2
lines changed
  • ports
    • atmel-samd/common-hal/busio
    • esp8266/common-hal/busio

2 files changed

+2
-2
lines changed

ports/atmel-samd/common-hal/busio/UART.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static void usart_async_rxc_callback(const struct usart_async_descriptor *const
5555
void common_hal_busio_uart_construct(busio_uart_obj_t *self,
5656
const mcu_pin_obj_t * tx, const mcu_pin_obj_t * rx, uint32_t baudrate,
5757
uint8_t bits, uart_parity_t parity, uint8_t stop, mp_float_t timeout,
58-
uint8_t receiver_buffer_size) {
58+
uint16_t receiver_buffer_size) {
5959
Sercom* sercom = NULL;
6060
uint8_t sercom_index = 255; // Unset index
6161
uint32_t rx_pinmux = 0;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extern UartDevice UartDev;
4040
void common_hal_busio_uart_construct(busio_uart_obj_t *self,
4141
const mcu_pin_obj_t * tx, const mcu_pin_obj_t * rx, uint32_t baudrate,
4242
uint8_t bits, uart_parity_t parity, uint8_t stop, mp_float_t timeout,
43-
uint8_t receiver_buffer_size) {
43+
uint16_t receiver_buffer_size) {
4444
if (rx != mp_const_none || tx != &pin_GPIO2) {
4545
nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, translate("Only tx supported on UART1 (GPIO2).")));
4646
}

0 commit comments

Comments
 (0)
0