Skip to content

Commit 7c9cd56

Browse files
committed
If uart is disabled, no pins will work; show NotImplementedError instead
1 parent 8658e7a commit 7c9cd56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/busio/UART.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ STATIC mp_obj_t busio_uart_make_new(const mp_obj_type_t *type, size_t n_args, si
155155
args[ARG_receiver_buffer_size].u_int, NULL, false);
156156
return (mp_obj_t)self;
157157
#else
158-
mp_raise_ValueError(translate("Invalid pins"));
158+
mp_raise_NotImplementedError(NULL);
159159
#endif // CIRCUITPY_BUSIO_UART
160160
}
161161

0 commit comments

Comments
 (0)