From 7b57cc2cc64fedd1e75f8e22abbf596e87b1ecce Mon Sep 17 00:00:00 2001 From: jw098 Date: Sat, 14 Jun 2025 11:47:51 -0700 Subject: [PATCH] fix sandwich maker --- .../Programs/Sandwiches/PokemonSV_SandwichRoutines.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SerialPrograms/Source/PokemonSV/Programs/Sandwiches/PokemonSV_SandwichRoutines.cpp b/SerialPrograms/Source/PokemonSV/Programs/Sandwiches/PokemonSV_SandwichRoutines.cpp index 16e150588d..4a36c7c72f 100644 --- a/SerialPrograms/Source/PokemonSV/Programs/Sandwiches/PokemonSV_SandwichRoutines.cpp +++ b/SerialPrograms/Source/PokemonSV/Programs/Sandwiches/PokemonSV_SandwichRoutines.cpp @@ -371,6 +371,8 @@ bool check_plate_empty(VideoStream& stream, SandwichPlateDetector::Side target_p // break; // } + stream.log("Check if the plate is empty."); + SandwichPlateDetector plate_detector = SandwichPlateDetector(stream.logger(), COLOR_RED, language, target_plate_label); return !plate_detector.is_label_yellow(screen); @@ -1245,6 +1247,7 @@ void run_sandwich_maker(ProgramEnvironment& env, VideoStream& stream, ProControl pbf_press_button(context, BUTTON_R, 20, 80); } target_plate = left_plate; + target_plate_label = SandwichPlateDetector::Side::LEFT; break; default: break;