Skip to content

Commit f3a7707

Browse files
committed
pybricks.iodevices.XboxController: Better arg order.
This makes more sense to read, as well as in blocks.
1 parent c38c6c0 commit f3a7707

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pybricks/iodevices/pb_type_iodevices_xbox_controller.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,9 +473,8 @@ STATIC mp_obj_t pb_xbox_rumble(size_t n_args, const mp_obj_t *pos_args, mp_map_t
473473
pb_type_xbox_obj_t, self,
474474
PB_ARG_DEFAULT_INT(power, 100),
475475
PB_ARG_DEFAULT_INT(duration, 200),
476-
PB_ARG_DEFAULT_INT(delay, 100),
477-
PB_ARG_DEFAULT_INT(count, 1)
478-
);
476+
PB_ARG_DEFAULT_INT(count, 1),
477+
PB_ARG_DEFAULT_INT(delay, 100));
479478

480479
(void)self;
481480
pb_xbox_assert_connected();

0 commit comments

Comments
 (0)