Fix unit test: load_filament

pull/109/head
3d-gussner 2021-08-22 19:51:40 +02:00 committed by DRracer
parent 3d121c1ca9
commit 12cf25511a
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ void LoadFilamentSuccessful(uint8_t slot, logic::LoadFilament &lf) {
lf,
[&](int step) -> bool {
if(step == 100){ // on 100th step make FINDA trigger
hal::adc::SetADC(config::findaADCIndex, 1023);
hal::gpio::WritePin(FINDA_PIN, hal::gpio::Level::high);
}
return lf.TopLevelState() == ProgressCode::FeedingToFinda; },
5000));
@ -125,7 +125,7 @@ void FailedLoadToFindaResolveHelpFindaTriggered(uint8_t slot, logic::LoadFilamen
lf,
[&](int step) -> bool {
if(step == 100){ // on 100th step make FINDA trigger
hal::adc::SetADC(config::findaADCIndex, 1023);
hal::gpio::WritePin(FINDA_PIN, hal::gpio::Level::high);
}
return lf.TopLevelState() == ProgressCode::ERRHelpingFilament; },
5000));