Skip to content

Commit b93a1b6

Browse files
committed
pbio/sys/program_load: Add auto start build flag.
Can be used to get something up and running on new ports without any input.
1 parent 3d30d3f commit b93a1b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/pbio/sys/program_load.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ pbio_error_t pbsys_program_load_wait_command(pbsys_main_program_t *program) {
294294
return PBIO_ERROR_CANCELED;
295295
}
296296

297+
#if PBSYS_CONFIG_PROGRAM_LOAD_AUTO_START
298+
pbsys_program_load_start_user_program_requested = true;
299+
#endif
300+
297301
if (pbsys_program_load_start_user_program_requested) {
298302
pbsys_program_load_start_user_program_requested = false;
299303
program->run_builtin = false;

0 commit comments

Comments
 (0)