Skip to content

Commit 623c9b0

Browse files
committed
more updates
1 parent ac5ab05 commit 623c9b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SerialPrograms/Source/NintendoSwitch/Programs/NintendoSwitch_Navigation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ bool is_setting_selected(VideoStream& stream, ProControllerContext& context, Ima
3535
overlays.add(COLOR_BLUE, unselected_box2);
3636
context.wait_for_all_requests();
3737
context.wait_for(Milliseconds(250));
38-
size_t max_attempts = 5; // multiple attempts because the highlighted icon/setting pulses. and sometimes there isn't enough contrast at the exact moment you take the snapshot.
38+
size_t max_attempts = 10; // multiple attempts because the highlighted icon/setting pulses. and sometimes there isn't enough contrast at the exact moment you take the snapshot.
3939
bool is_selected = false;
4040
for (size_t i = 0; i < max_attempts; i++){
4141
VideoSnapshot snapshot = stream.video().snapshot();
@@ -65,7 +65,7 @@ bool is_setting_selected(VideoStream& stream, ProControllerContext& context, Ima
6565
if(is_selected){
6666
return true;
6767
}
68-
context.wait_for(Milliseconds(200));
68+
context.wait_for(Milliseconds(100));
6969
}
7070

7171
return false;
@@ -175,7 +175,7 @@ void home_to_date_time(VideoStream& stream, ProControllerContext& context, bool
175175
if (!is_setting_selected(stream, context, sync_clock, other_setting3, other_setting4)){
176176
OperationFailedException::fire(
177177
ErrorReport::SEND_ERROR_REPORT,
178-
"home_to_date_time(): Failed to reach settings gear on Home page after 2 attempts.",
178+
"home_to_date_time(): Failed to reach 'Synchronize Clock via Internet', within 'Date and Time', after 2 attempts.",
179179
stream
180180
);
181181
}

0 commit comments

Comments
 (0)