Skip to content

Commit 7df1b02

Browse files
committed
Increase some input delays to fix timing issues
- When performing the switch from the real controller to the virtual controller, the “this will disconnect local communication” message sometimes takes additional time to dismiss, which desyncs the process. Adding an additional delay at this point seems to fix the problem. - Cancelling a Max Raid Battle takes a very variable time, and the previous delay value still resulted in occasional desyncs. The new delay seems to fix the problem.
1 parent 2f72e35 commit 7df1b02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/automation-utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void switch_controller(enum switch_mode mode)
2828

2929
/* Enter change style/order, validating any “interrupt local comm” message */
3030
{ BT_A, DP_NEUTRAL, SEQ_MASH, 16 },
31-
{ BT_NONE, DP_NEUTRAL, SEQ_HOLD, 20 }, /* Wait for “Press L/R” menu */
31+
{ BT_NONE, DP_NEUTRAL, SEQ_HOLD, 50 }, /* Wait for “Press L/R” menu */
3232
);
3333

3434
if (mode == REAL_TO_VIRT) {

src/swsh/swsh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ void change_raid(void)
371371
/* Cancel the raid (exiting it), then re-enter it */
372372
SEND_BUTTON_SEQUENCE(
373373
{ BT_A, DP_NEUTRAL, SEQ_HOLD, 1 }, /* Cancel raid */
374-
{ BT_NONE, DP_NEUTRAL, SEQ_HOLD, 100 }, /* Cancelling takes a loong time */
374+
{ BT_NONE, DP_NEUTRAL, SEQ_HOLD, 120 }, /* Cancelling takes a loong time */
375375
{ BT_A, DP_NEUTRAL, SEQ_HOLD, 15 }, /* Absorb the watts (speed up text) */
376376
{ BT_NONE, DP_NEUTRAL, SEQ_HOLD, 1 }, /* Release the A button */
377377
{ BT_A, DP_NEUTRAL, SEQ_HOLD, 15 }, /* Validate second message */

0 commit comments

Comments
 (0)