Remove redundant call to SetPairButOffOthers

retract.Reset takes care of setting the green LED to blink.
Might as well turn of the red LED during reset just in case.

Change in memory:
Flash: -30 bytes
SRAM: 0 bytes
pull/274/head
Guðni Már Gilbert 2023-04-30 19:48:46 +00:00
parent 113f71330e
commit 9f52482fe2
2 changed files with 1 additions and 2 deletions

View File

@ -56,7 +56,6 @@ void logic::LoadFilament::Reset2(bool feedPhaseLimited) {
} }
void logic::LoadFilament::GoToRetractingFromFinda() { void logic::LoadFilament::GoToRetractingFromFinda() {
ml::leds.SetPairButOffOthers(mg::globals.ActiveSlot(), ml::blink0, ml::off);
state = ProgressCode::RetractingFromFinda; state = ProgressCode::RetractingFromFinda;
error = ErrorCode::RUNNING; error = ErrorCode::RUNNING;
retract.Reset(); retract.Reset();

View File

@ -13,7 +13,7 @@ namespace logic {
void RetractFromFinda::Reset() { void RetractFromFinda::Reset() {
dbg_logic_P(PSTR("\nRetract from FINDA\n\n")); dbg_logic_P(PSTR("\nRetract from FINDA\n\n"));
state = EngagingIdler; state = EngagingIdler;
ml::leds.SetMode(mg::globals.ActiveSlot(), ml::green, ml::blink0); ml::leds.SetPairButOffOthers(mg::globals.ActiveSlot(), ml::blink0, ml::off);
mi::idler.Engage(mg::globals.ActiveSlot()); mi::idler.Engage(mg::globals.ActiveSlot());
} }