Skip to content

Commit 1b4a3c3

Browse files
committed
Add delay to the public box main function
This is to make sure that all boxes have started before launching the public box threads.
1 parent 0b7e9d6 commit 1b4a3c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ int main(void)
9090
led_blue = LED_OFF;
9191
led_green = LED_OFF;
9292

93+
/* Add small delay to make sure all boxes have started. */
94+
Thread::wait(100);
95+
9396
/* Startup a few RPC runners. */
9497
/* Note: The stack must be at least 1kB since threads will use printf. */
9598
Thread sync(osPriorityNormal, 1024, NULL);

0 commit comments

Comments
 (0)