Fix unit test: cut_fillament

pull/109/head
3d-gussner 2021-08-22 19:26:31 +02:00 committed by DRracer
parent 003b2f6899
commit a7a55b4039
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ void CutSlot(logic::CutFilament &cf, uint8_t cutSlot) {
cf,
[&](int step) -> bool {
if( step == 100 ){ // simulate FINDA trigger - will get pressed in 100 steps (due to debouncing)
hal::adc::SetADC(config::findaADCIndex, 900);
hal::gpio::WritePin(FINDA_PIN, hal::gpio::Level::high);
}
return cf.TopLevelState() == ProgressCode::FeedingToFinda; }, 5000));
@ -61,7 +61,7 @@ void CutSlot(logic::CutFilament &cf, uint8_t cutSlot) {
cf,
[&](int step) -> bool {
if( step == 100 ){ // simulate FINDA trigger - will get depressed in 100 steps
hal::adc::SetADC(config::findaADCIndex, 0);
hal::gpio::WritePin(FINDA_PIN, hal::gpio::Level::low);
}
return cf.TopLevelState() == ProgressCode::UnloadingToPulley; }, 5000));