Skip to content

Commit 22a8f1d

Browse files
gudnimgDRracer
authored andcommitted
main: reduce duplicate code
Change in memory: Flash: -36 bytes SRAM: 0 bytes
1 parent ceda1cc commit 22a8f1d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/main.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ static void setup2() {
9595
mb::buttons.Step();
9696

9797
// Turn off all leds
98-
for (uint8_t i = 0; i < config::toolCount; i++) {
99-
ml::leds.SetMode(i, ml::green, ml::off);
100-
ml::leds.SetMode(i, ml::red, ml::off);
101-
}
98+
ml::leds.SetAllOff();
10299
ml::leds.Step();
103100
mb::buttons.Step();
104101

0 commit comments

Comments
 (0)