Skip to content

Commit 8a3494a

Browse files
committed
Fix ensure_at_home() holding down the Home button.
1 parent 4f569f1 commit 8a3494a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

SerialPrograms/Source/CommonFramework/Globals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace PokemonAutomation{
2626
const bool IS_BETA_VERSION = true;
2727
const int PROGRAM_VERSION_MAJOR = 0;
2828
const int PROGRAM_VERSION_MINOR = 54;
29-
const int PROGRAM_VERSION_PATCH = 26;
29+
const int PROGRAM_VERSION_PATCH = 27;
3030

3131
const std::string PROGRAM_VERSION_BASE =
3232
"v" + std::to_string(PROGRAM_VERSION_MAJOR) +

SerialPrograms/Source/NintendoSwitch/Programs/NintendoSwitch_GameEntry.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ void ensure_at_home(ConsoleHandle& console, ControllerContext& context){
5353

5454
for (size_t attempts = 0; attempts < 10; attempts++){
5555
HomeMenuWatcher home_menu(console, 100ms);
56+
context.wait_for_all_requests();
5657
int ret = wait_until(
5758
console, context, 5000ms,
5859
{home_menu}
@@ -61,7 +62,7 @@ void ensure_at_home(ConsoleHandle& console, ControllerContext& context){
6162
return;
6263
}
6364
console.log("Unable to detect Home. Pressing Home button...", COLOR_RED);
64-
pbf_press_button(context, BUTTON_HOME, 160ms, 0ms);
65+
pbf_press_button(context, BUTTON_HOME, 160ms, 160ms);
6566
}
6667
OperationFailedException::fire(
6768
ErrorReport::SEND_ERROR_REPORT,

0 commit comments

Comments
 (0)