main: reduce duplicate code
Change in memory: Flash: -36 bytes SRAM: 0 bytespull/354/head
parent
ceda1cce08
commit
22a8f1df57
|
|
@ -95,10 +95,7 @@ static void setup2() {
|
||||||
mb::buttons.Step();
|
mb::buttons.Step();
|
||||||
|
|
||||||
// Turn off all leds
|
// Turn off all leds
|
||||||
for (uint8_t i = 0; i < config::toolCount; i++) {
|
ml::leds.SetAllOff();
|
||||||
ml::leds.SetMode(i, ml::green, ml::off);
|
|
||||||
ml::leds.SetMode(i, ml::red, ml::off);
|
|
||||||
}
|
|
||||||
ml::leds.Step();
|
ml::leds.Step();
|
||||||
mb::buttons.Step();
|
mb::buttons.Step();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue