Skip to content

Commit 5bd4a26

Browse files
committed
Fix bank LED initialization issue\n\nChanged Bank 2 and Bank 3 LED initialization from setup(1) to setup(0)\nto ensure only Bank 1 LED is on at startup, matching the intended behavior.\n\nThe BankManager constructor calls updateLEDs() which correctly sets only\nBank 1 LED on, but the initial hardware setup was incorrectly turning on\nall three bank LEDs.\n\nFixes: All three bank LEDs were on at startup instead of only the first one.\n\nGenerated by Mistral Vibe.\nCo-Authored-By: Mistral Vibe vibe@mistral.ai
1 parent 48d2038 commit 5bd4a26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ void setup_hardware() {
138138
ledPower.setup(1); // Turn on power LED
139139
ledBluetooth.setup(0); // Turn off Bluetooth LED initially
140140
ledSelect1.setup(1); // Turn on Bank 1 LED (default bank)
141-
ledSelect2.setup(1); // Turn off Bank 2 LED
142-
ledSelect3.setup(1); // Turn off Bank 3 LED
141+
ledSelect2.setup(0); // Turn off Bank 2 LED
142+
ledSelect3.setup(0); // Turn off Bank 3 LED
143143

144144
// Setup buttons (configure GPIO pins as input with pull-up)
145145
BUTTON_SELECT.setup();

0 commit comments

Comments
 (0)