Skip to content

Commit

Permalink
pybricks.iodevices.XboxController: Better arg order.
Browse files Browse the repository at this point in the history
This makes more sense to read, as well as in blocks.
  • Loading branch information
laurensvalk committed Mar 21, 2024
1 parent c38c6c0 commit f3a7707
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pybricks/iodevices/pb_type_iodevices_xbox_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,8 @@ STATIC mp_obj_t pb_xbox_rumble(size_t n_args, const mp_obj_t *pos_args, mp_map_t
pb_type_xbox_obj_t, self,
PB_ARG_DEFAULT_INT(power, 100),
PB_ARG_DEFAULT_INT(duration, 200),
PB_ARG_DEFAULT_INT(delay, 100),
PB_ARG_DEFAULT_INT(count, 1)
);
PB_ARG_DEFAULT_INT(count, 1),
PB_ARG_DEFAULT_INT(delay, 100));

(void)self;
pb_xbox_assert_connected();
Expand Down

0 comments on commit f3a7707

Please sign in to comment.