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

pull/101/head
D.R.racer 2021-08-31 07:05:04 +02:00
parent e994cc9c4a
commit 7458cd7bc4
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ void JustLoadFilament(logic::ToolChange tc, uint8_t slot) {
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));