Fix feed_to_finda unit test

pull/132/head
D.R.racer 2021-10-19 10:38:53 +02:00 committed by DRracer
parent ee247246ee
commit 3d2a76b6a0
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ TEST_CASE("feed_to_finda::feed_phase_unlimited", "[feed_to_finda]") {
// idler engaged, selector in position, we'll start pushing filament // idler engaged, selector in position, we'll start pushing filament
REQUIRE(ff.State() == FeedToFinda::PushingFilament); REQUIRE(ff.State() == FeedToFinda::PushingFilament);
// at least at the beginning the LED should shine green (it should be blinking, but this mode has been already verified in the LED's unit test) // at least at the beginning the LED should shine green (it should be blinking, but this mode has been already verified in the LED's unit test)
REQUIRE(ml::leds.LedOn(mg::globals.ActiveSlot(), ml::green)); REQUIRE(ml::leds.Mode(mg::globals.ActiveSlot(), ml::green) == ml::blink0);
// now let the filament be pushed into the FINDA - do 500 steps without triggering the condition // now let the filament be pushed into the FINDA - do 500 steps without triggering the condition
hal::gpio::WritePin(FINDA_PIN, hal::gpio::Level::high); hal::gpio::WritePin(FINDA_PIN, hal::gpio::Level::high);