Skip to content

Commit 9d6b064

Browse files
committed
wait longer after soft restart
1 parent 6903e5b commit 9d6b064

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

platforms/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
IO_BOARDS_SHA=b45e1154c041b25fb4206e31d35fa0a5800f2c37
5+
IO_BOARDS_SHA=2e524ec19edfafeb868fdc65af6b1e4df7bde38f
66
LIBSERIALPORT_SHA=21b3dfe5f68c205be4086469335fd2fc2ce11ed2
77
YAML_CPP_SHA=28f93bdec6387d42332220afa9558060c8016795
88

src/RS485Comm.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,13 @@ bool RS485Comm::RestartBoards() {
433433
return false;
434434
}
435435
sp_drain(m_pSerialPort);
436-
std::this_thread::sleep_for(std::chrono::milliseconds(100));
436+
// Soft restart keeps the RP2040 alive, but a board with heavier local
437+
// teardown work (for example WS2812/effects state on the first board on the
438+
// bus) may need a little longer before it can reliably acknowledge the first
439+
// config frame of the next session.
440+
std::this_thread::sleep_for(std::chrono::milliseconds(250));
437441
sp_flush(m_pSerialPort, SP_BUF_INPUT);
438-
std::this_thread::sleep_for(std::chrono::milliseconds(100));
442+
std::this_thread::sleep_for(std::chrono::milliseconds(150));
439443
return true;
440444
}
441445

0 commit comments

Comments
 (0)