Skip to content

Commit f57770a

Browse files
committed
update comments
1 parent 8176282 commit f57770a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

SerialPrograms/Source/NintendoSwitch/Programs/NintendoSwitch_Navigation.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ void home_to_date_time_Switch1_wired_with_feedback(VideoStream& stream, ProContr
4242
// ImageFloatBox other_setting2(0.545, 0.69, 0.05, 0.03);
4343

4444
// Two A presses in case we drop the 1st one.
45+
// the program can self recover even if the second button press is registered.
4546
ssf_press_button(context, BUTTON_A, 3);
4647
ssf_press_button(context, BUTTON_A, 3);
4748

@@ -68,7 +69,7 @@ void home_to_date_time_Switch1_wired_with_feedback(VideoStream& stream, ProContr
6869
},
6970
{system_setting_selected}
7071
);
71-
if (ret < 0){ // failed to detect System highlighted. press home and re-try
72+
if (ret < 0){ // failed to detect "System" being highlighted. press home and re-try
7273
pbf_press_button(context, BUTTON_HOME, 100ms, 2000ms);
7374
continue;
7475
}
@@ -90,7 +91,8 @@ void home_to_date_time_Switch1_wired_with_feedback(VideoStream& stream, ProContr
9091
ssf_issue_scroll(context, SSF_SCROLL_DOWN, 3);
9192
// }
9293

93-
94+
// only one ButtonA press since the program can self-recover if the button is dropped.
95+
// furthermore, the program can't self-recover if a second button press is registered.
9496
ssf_press_button(context, BUTTON_A, 3);
9597

9698
context.wait_for_all_requests();
@@ -105,7 +107,7 @@ void home_to_date_time_Switch1_wired_with_feedback(VideoStream& stream, ProContr
105107
Milliseconds(2000),
106108
{sync_clock_selected}
107109
);
108-
if (ret < 0){ // failed to detect System highlighted. press home and re-try
110+
if (ret < 0){ // failed to detect "Synchronize clock" being highlighted. press home and re-try
109111
pbf_press_button(context, BUTTON_HOME, 100ms, 2000ms);
110112
continue;
111113
}

0 commit comments

Comments
 (0)