Skip to content

Commit

Permalink
shared/runtime/pyexec: Block on printing banner umtil repl/stdout ready.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leech <[email protected]>
  • Loading branch information
pi-anl committed Apr 19, 2024
1 parent f62fa46 commit 7800b45
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions shared/runtime/pyexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,14 +553,16 @@ void pyexec_print_banner() {
#ifdef MICROPY_EVENT_POLL_HOOK
MICROPY_EVENT_POLL_HOOK
#endif
#ifdef __WFI
__WFI();
#else
#ifdef __WFE
__WFE();
#endif
#endif
// #ifdef __WFI
// __WFI();
// #else
// #ifdef __WFE
// __WFE();
// #endif
// #endif
}
// mp_hal_delay_ms(4);

mp_hal_stdout_tx_str(MICROPY_BANNER_NAME_AND_VERSION);
mp_hal_stdout_tx_str("; " MICROPY_BANNER_MACHINE);
mp_hal_stdout_tx_str("\r\n");
Expand Down

0 comments on commit 7800b45

Please sign in to comment.