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/275/head
Guðni Már Gilbert 2023-04-30 19:48:46 +00:00 committed by DRracer
parent c096725674
commit 4a315c920a
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() {
ml::leds.SetPairButOffOthers(mg::globals.ActiveSlot(), ml::blink0, ml::off);
state = ProgressCode::RetractingFromFinda;
error = ErrorCode::RUNNING;
retract.Reset();

View File

@ -13,7 +13,7 @@ namespace logic {
void RetractFromFinda::Reset() {
dbg_logic_P(PSTR("\nRetract from FINDA\n\n"));
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());
}