Skip to content

Commit b3186a6

Browse files
Wait a bit for the backpack bus slaves to start
Doing the bus enumeration directly after powering up the backpacks makes enumeration find no backpacks.
1 parent d31aacd commit b3186a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Scout.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ void PinoccioScout::setup(bool isForcedLeadScout) {
4040
RgbLed.turnOff();
4141

4242
enableBackpackVcc();
43+
// Give the slaves on the backpack bus a bit of time to start up. 1ms
44+
// seems to be enough, but let's be generous.
45+
delay(5);
4346
bp.begin(BACKPACK_BUS);
4447
if (!bp.enumerate()) {
4548
bp.printLastError(Serial);

0 commit comments

Comments
 (0)