Skip to content

Commit 513a6c5

Browse files
Initialize ScoutHandler and Shell after the backpack bus
The handler would run wifi.setup() if it is a lead scout, but to know that, the backpack bus should be initialized.
1 parent df07605 commit 513a6c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Scout.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ void PinoccioScout::setup(bool isForcedLeadScout) {
3939

4040
RgbLed.turnOff();
4141

42-
handler.setup();
43-
Shell.setup();
44-
4542
enableBackpackVcc();
4643
bp.begin(BACKPACK_BUS);
4744
if (!bp.enumerate()) {
@@ -59,6 +56,9 @@ void PinoccioScout::setup(bool isForcedLeadScout) {
5956
//Serial.println();
6057
}
6158

59+
handler.setup();
60+
Shell.setup();
61+
6262
Wire.begin();
6363
HAL_FuelGaugeConfig(20); // Configure the MAX17048G's alert percentage to 20%
6464

0 commit comments

Comments
 (0)