Verify+fix second Feed to FINDA's unit test

pull/26/head
D.R.racer 2021-06-18 07:33:01 +02:00 committed by DRracer
parent 85910497f7
commit d9b368bb92
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ TEST_CASE("feed_to_finda::FINDA_failed", "[feed_to_finda]") {
// now let the filament be pushed into the FINDA - but we make sure the FINDA doesn't trigger at all // now let the filament be pushed into the FINDA - but we make sure the FINDA doesn't trigger at all
hal::adc::ReinitADC(1, hal::adc::TADCData({ 0 }), 100); hal::adc::ReinitADC(1, hal::adc::TADCData({ 0 }), 100);
REQUIRE(!WhileCondition( REQUIRE(WhileCondition(
ff, // boo, this formatting is UGLY! ff, // boo, this formatting is UGLY!
[&]() { return ff.State() == FeedToFinda::PushingFilament; }, [&]() { return ff.State() == FeedToFinda::PushingFilament; },
5000)); 5000));

View File

@ -53,7 +53,7 @@ void ForceReinitAllAutomata() {
new (&modules::motion::motion) modules::motion::Motion(); new (&modules::motion::motion) modules::motion::Motion();
// no buttons involved ;) // no buttons involved ;)
hal::adc::ReinitADC(0, hal::adc::TADCData({ 0 }), 1); hal::adc::ReinitADC(0, hal::adc::TADCData({ 1023 }), 1);
// finda OFF // finda OFF
hal::adc::ReinitADC(1, hal::adc::TADCData({ 0 }), 1); hal::adc::ReinitADC(1, hal::adc::TADCData({ 0 }), 1);