main: reduce duplicate code

Change in memory:
Flash: -36 bytes
SRAM: 0 bytes
pull/346/head
Guðni Már Gilbert 2025-01-06 00:29:57 +00:00
parent dc68b70cff
commit e4e4522f80
1 changed files with 1 additions and 4 deletions

View File

@ -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();