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 bytespull/275/head
parent
c096725674
commit
4a315c920a
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue