8000 esp32: machine_can.c fix initialisation argument ARG_bs2 · IhorNehrutsa/micropython@bea5e26 · GitHub
[go: up one dir, main page]

Skip to content

Commit bea5e26

Browse files
committed
esp32: machine_can.c fix initialisation argument ARG_bs2
micropython#7381 (comment) Thanks to @kdschlosser
1 parent 4204497 commit bea5e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/esp32/machine_can.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ STATIC mp_obj_t machine_hw_can_init_helper(machine_can_obj_t *self, size_t n_arg
542542
.brp = args[ARG_prescaler].u_int,
543543
.sjw = args[ARG_sjw].u_int,
544544
.tseg_1 = args[ARG_bs1].u_int,
545-
.tseg_2 = args[ARG_bs1].u_int,
545+
.tseg_2 = args[ARG_bs2].u_int,
546546
.triple_sampling = false
547547
});
548548
break;

0 commit comments

Comments
 (0)
0