Skip to content

Commit 6c5fe17

Browse files
authored
Another fix for sandwich maker (#606)
1 parent 1ad3c3d commit 6c5fe17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SerialPrograms/Source/PokemonSV/Programs/Sandwiches/PokemonSV_SandwichRoutines.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ bool check_plate_empty(VideoStream& stream, SandwichPlateDetector::Side target_p
371371
// break;
372372
// }
373373

374+
stream.log("Check if the plate is empty.");
375+
374376
SandwichPlateDetector plate_detector = SandwichPlateDetector(stream.logger(), COLOR_RED, language, target_plate_label);
375377

376378
return !plate_detector.is_label_yellow(screen);
@@ -1245,6 +1247,7 @@ void run_sandwich_maker(ProgramEnvironment& env, VideoStream& stream, ProControl
12451247
pbf_press_button(context, BUTTON_R, 20, 80);
12461248
}
12471249
target_plate = left_plate;
1250+
target_plate_label = SandwichPlateDetector::Side::LEFT;
12481251
break;
12491252
default:
12501253
break;

0 commit comments

Comments
 (0)