Fix failed_load_to_finda_0-4_resolve_manual unit test

pull/249/head
Guðni Már Gilbert 2022-12-11 16:28:07 +00:00
parent 4ef8d81bfc
commit 06d15c2cea
1 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,9 @@ bool LoadFilament::StepInner() {
if (!mf::finda.Pressed()) { if (!mf::finda.Pressed()) {
Reset2(false); Reset2(false);
} else { } else {
// What if user fixes the issue manually? Then state must be set to InSelector
// But unit tests don't complain
// mg::globals.SetFilamentLoaded(mg::globals.ActiveSlot(), mg::FilamentLoadState::InSelector);
GoToRetractingFromFinda(); GoToRetractingFromFinda();
} }
break; break;
@ -143,6 +146,7 @@ bool LoadFilament::StepInner() {
state = ProgressCode::ERRWaitingForUser; // stand still state = ProgressCode::ERRWaitingForUser; // stand still
} else { } else {
// all sensors are ok - pull the filament back // all sensors are ok - pull the filament back
mg::globals.SetFilamentLoaded(mg::globals.ActiveSlot(), mg::FilamentLoadState::InSelector);
GoToRetractingFromFinda(); GoToRetractingFromFinda();
} }
break; break;