Skip to content

Commit b479167

Browse files
author
Gin
committed
fix bug in Home Sorter
1 parent 1a63abc commit b479167

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

SerialPrograms/Source/PokemonHome/Programs/PokemonHome_BoxSorting.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -551,11 +551,6 @@ void BoxSorting::program(SingleSwitchProgramEnvironment& env, ProControllerConte
551551
continue;
552552
}
553553

554-
if (row > 0 || column > 0){
555-
// Press button R to go to next summary screen
556-
pbf_press_button(context, BUTTON_R, 10, 40);
557-
context.wait_for_all_requests();
558-
}
559554
// Wait for the summary screen transition to end
560555
FrozenImageDetector frozen_image_detector(COLOR_GREEN, {0.388, 0.238, 0.109, 0.062}, Milliseconds(80), 20);
561556
frozen_image_detector.make_overlays(box_render);
@@ -611,6 +606,10 @@ void BoxSorting::program(SingleSwitchProgramEnvironment& env, ProControllerConte
611606
// ot_box
612607
// nature_box
613608
// ability_box
609+
610+
// Press button R to go to next summary screen
611+
pbf_press_button(context, BUTTON_R, 10, VIDEO_DELAY+15);
612+
context.wait_for_all_requests();
614613
}
615614
}
616615

0 commit comments

Comments
 (0)