Fix unit test: tool_change

pull/93/head
3d-gussner 2021-08-22 19:54:40 +02:00 committed by D.R.racer
parent 138e2b8ab6
commit aea3d1ad45
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ void ToolChange(logic::ToolChange tc, uint8_t fromSlot, uint8_t toSlot) {
tc,
[&](int step) -> bool {
if(step == 2000){ // on 2000th step make FINDA trigger
hal::adc::SetADC(config::findaADCIndex, 0);
hal::gpio::WritePin(FINDA_PIN, hal::gpio::Level::low);
}
return tc.TopLevelState() == ProgressCode::UnloadingFilament; },
200000UL));
@ -43,7 +43,7 @@ void ToolChange(logic::ToolChange tc, uint8_t fromSlot, uint8_t toSlot) {
tc,
[&](int step) -> bool {
if(step == 1000){ // on 1000th step make FINDA trigger
hal::adc::SetADC(config::findaADCIndex, 900);
hal::gpio::WritePin(FINDA_PIN, hal::gpio::Level::high);
}
return tc.TopLevelState() == ProgressCode::LoadingFilament; },
200000UL));