Skip to content

Commit 8176282

Browse files
committed
remove redundant button presses
1 parent 450f0fc commit 8176282

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

SerialPrograms/Source/NintendoSwitch/Programs/NintendoSwitch_Navigation.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ void home_to_date_time_Switch1_wired_with_feedback(VideoStream& stream, ProContr
7373
continue;
7474
}
7575

76-
// Scroll left and press A to exit the sleep menu if we happened to
77-
// land there.
78-
ssf_issue_scroll(context, SSF_SCROLL_LEFT, 3);
79-
ssf_press_button(context, BUTTON_A, 3);
8076

8177
{
8278
auto iterations = Milliseconds(312) / 24ms + 1;
@@ -95,12 +91,10 @@ void home_to_date_time_Switch1_wired_with_feedback(VideoStream& stream, ProContr
9591
// }
9692

9793

98-
// double up this A press to make sure it gets through.
99-
ssf_press_button(context, BUTTON_A, 3);
10094
ssf_press_button(context, BUTTON_A, 3);
10195

10296
context.wait_for_all_requests();
103-
context.wait_for(Milliseconds(250));
97+
context.wait_for(Milliseconds(300));
10498
// we expect to be within "Date and Time", with "Synchronize Clock via Internet" being highlighted
10599
ImageFloatBox sync_clock_box(0.168, 0.185, 0.01, 0.1);
106100
ImageFloatBox other_setting3(0.1, 0.185, 0.01, 0.1);

0 commit comments

Comments
 (0)