Skip to content

Commit b363ebe

Browse files
committed
Fix enter game timeout
1 parent e0e478c commit b363ebe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SerialPrograms/Source/PokemonLZA/Programs/PokemonLZA_GameEntry.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ bool gamemenu_to_ingame(
4040
stream.log("Waiting to enter game...");
4141
int ret = run_until<ProControllerContext>(
4242
stream, context,
43-
[enter_game_timeout](ProControllerContext& context){
44-
pbf_mash_button(context, BUTTON_A, enter_game_timeout / 2);
43+
[](ProControllerContext& context){
44+
pbf_mash_button(context, BUTTON_A, 2s);
4545
},
4646
{{detector}}
4747
);
@@ -57,7 +57,7 @@ bool gamemenu_to_ingame(
5757
BlackScreenOverWatcher detector(COLOR_RED, {0.1, 0.04, 0.8, 0.3});
5858
int ret = wait_until(
5959
stream, context,
60-
std::chrono::milliseconds(enter_game_timeout / 2),
60+
std::chrono::milliseconds(enter_game_timeout),
6161
{{detector}}
6262
);
6363
if (ret == 0){

0 commit comments

Comments
 (0)