summaryrefslogtreecommitdiffstatshomepage
path: root/ports/zephyr/machine_uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/zephyr/machine_uart.c')
-rw-r--r--ports/zephyr/machine_uart.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ports/zephyr/machine_uart.c b/ports/zephyr/machine_uart.c
index 9580d37907..867c5ae886 100644
--- a/ports/zephyr/machine_uart.c
+++ b/ports/zephyr/machine_uart.c
@@ -157,11 +157,9 @@ STATIC const mp_stream_p_t uart_stream_p = {
MP_DEFINE_CONST_OBJ_TYPE(
machine_uart_type,
MP_QSTR_UART,
- MP_TYPE_FLAG_NONE,
+ MP_TYPE_FLAG_ITER_IS_STREAM,
machine_uart_make_new,
print, machine_uart_print,
- getiter, mp_identity_getiter,
- iternext, mp_stream_unbuffered_iter,
protocol, &uart_stream_p,
locals_dict, &machine_uart_locals_dict
);