Rebase onto main, reflect FINDA change (ADC->digital pin) in unit tests

pull/110/head
D.R.racer 2021-08-31 07:05:04 +02:00 committed by DRracer
parent 5a53acd802
commit 315530ec16
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ void JustLoadFilament(logic::ToolChange tc, uint8_t slot) {
tc, tc,
[&](int step) -> bool { [&](int step) -> bool {
if(step == 1000){ // on 1000th step make FINDA trigger 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; }, return tc.TopLevelState() == ProgressCode::LoadingFilament; },
200000UL)); 200000UL));