summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-11-27 12:52:11 -0500
committerDan Halbert <halbert@halwitz.org>2019-11-27 13:05:29 -0500
commitb32a9192df04c6fb36027b2b9b3e0e3a3548005a (patch)
treebafb2fa5d56ddfd1cf6cdd7aef38a10c9da99937 /shared-module
parentcc008598d05637decf5aab9cae03e992a2e19712 (diff)
make UART.write be blocking on SAMD; add timeout property
Diffstat (limited to 'shared-module')
-rw-r--r--shared-module/board/__init__.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/board/__init__.c b/shared-module/board/__init__.c
index dd07d7190..914bc4313 100644
--- a/shared-module/board/__init__.c
+++ b/shared-module/board/__init__.c
@@ -101,7 +101,7 @@ mp_obj_t common_hal_board_create_uart(void) {
const mcu_pin_obj_t* rx = MP_OBJ_TO_PTR(DEFAULT_UART_BUS_RX);
const mcu_pin_obj_t* tx = MP_OBJ_TO_PTR(DEFAULT_UART_BUS_TX);
- common_hal_busio_uart_construct(self, tx, rx, 9600, 8, PARITY_NONE, 1, 1000, 64);
+ common_hal_busio_uart_construct(self, tx, rx, 9600, 8, PARITY_NONE, 1, 1.0f, 64);
MP_STATE_VM(shared_uart_bus) = MP_OBJ_FROM_PTR(self);
return MP_STATE_VM(shared_uart_bus);
}