Skip to content

Commit fd68e61

Browse files
committed
Add extra button press to connect controller before going home to check black border.
1 parent 903780b commit fd68e61

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

SerialPrograms/Source/PokemonFRLG/PokemonFRLG_Navigation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ void home_black_border_check(ConsoleHandle& console, ProControllerContext& conte
339339
if (GameSettings::instance().DEVICE == GameSettings::Device::switch_1_2) {
340340
console.log("Switch 1 or 2 selected in Settings.");
341341
console.log("Going to home to check for black border.");
342+
pbf_press_button(context, BUTTON_ZL, 120ms, 880ms); // Connect the controller.
342343
pbf_press_button(context, BUTTON_HOME, 120ms, 880ms);
343344
context.wait_for_all_requests();
344345
StartProgramChecks::check_border(console);

SerialPrograms/Source/PokemonFRLG/Programs/ShinyHunting/PokemonFRLG_PrizeCornerReset.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#include "CommonFramework/ProgramStats/StatsTracking.h"
1111
#include "CommonFramework/VideoPipeline/VideoFeed.h"
1212
#include "CommonTools/Async/InferenceRoutines.h"
13-
#include "CommonTools/VisualDetectors/BlackScreenDetector.h"
14-
#include "CommonTools/StartupChecks/StartProgramChecks.h"
1513
#include "Pokemon/Pokemon_Strings.h"
1614
#include "NintendoSwitch/Commands/NintendoSwitch_Commands_PushButtons.h"
1715
#include "PokemonFRLG/Inference/Dialogs/PokemonFRLG_DialogDetector.h"

0 commit comments

Comments
 (0)