Commit 2ed66d4a authored by Klint Youngmeyer's avatar Klint Youngmeyer
Browse files

Fix 2 typos that affected RS9116 initialization on non-standard pins

parent f8f80ffe
......@@ -334,12 +334,12 @@ STATIC mp_obj_t rs9116_init_helper(const rs9116_obj_t *self, size_t n_args, cons
if (args[1].u_obj == MP_OBJ_NULL) {
rs9116_obj.rst = pin_find(mp_obj_new_str(DEFAULT_RST, strlen(DEFAULT_RST)));
} else {
rs9116_obj.rst = pin_find(args[0].u_obj);
rs9116_obj.rst = pin_find(args[1].u_obj);
}
if (args[2].u_obj == MP_OBJ_NULL) {
rs9116_obj.irq = pin_find(mp_obj_new_str(DEFAULT_IRQ, strlen(DEFAULT_IRQ)));
} else {
rs9116_obj.irq = pin_find(args[0].u_obj);
rs9116_obj.irq = pin_find(args[2].u_obj);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment