Skip to content

Commit

Permalink
pbio/sys/main: Restore auto-start build flag.
Browse files Browse the repository at this point in the history
This was missed in refactoring #264
  • Loading branch information
laurensvalk committed Sep 17, 2024
1 parent aa7eb39 commit 1081780
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pbio/sys/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ int main(int argc, char **argv) {
pbio_init();
pbsys_init();

#if PBSYS_CONFIG_USER_PROGRAM_AUTO_START
pbsys_main_program_request_start(0);
#endif

// Keep loading and running user programs until shutdown is requested.
while (!pbsys_status_test(PBIO_PYBRICKS_STATUS_SHUTDOWN_REQUEST)) {

Expand Down

0 comments on commit 1081780

Please sign in to comment.