8000 extmod/machine_signal: Fix parsing of invert arg when Pin is first arg. · lable/micropython@653a0c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 653a0c2

Browse files
committed
extmod/machine_signal: Fix parsing of invert arg when Pin is first arg.
1 parent 6b4d4a2 commit 653a0c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extmod/machine_signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ STATIC mp_obj_t signal_make_new(const mp_obj_type_t *type, size_t n_args, size_t
9696
if (n_args == 1) {
9797
if (n_kw == 0) {
9898
} else if (n_kw == 1 && args[1] == MP_OBJ_NEW_QSTR(MP_QSTR_invert)) {
99-
invert = mp_obj_is_true(args[1]);
99+
invert = mp_obj_is_true(args[2]);
100100
} else {
101101
goto error;
102102
}

0 commit comments

Comments
 (0)
0