Verify+fix second Feed to FINDA's unit test
parent
85910497f7
commit
d9b368bb92
|
|
@ -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));
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue