Skip to content

Commit

Permalink
rp2/main: Keep UART REPL with DEBUG=1 and MICROPY_HW_ENABLE_UART_REPL=1.
Browse files Browse the repository at this point in the history
For builds with DEBUG=1 and MICROPY_HW_ENABLE_UART_REPL=1, calling
stdio_init_all() in main() detaches the UART input from REPL.  This change
suppresses calling stdio_init_all() then.
  • Loading branch information
robert-hh authored and dpgeorge committed Mar 20, 2023
1 parent be686e6 commit 711bac5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ports/rp2/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ int main(int argc, char **argv) {
bi_decl(bi_program_feature("UART REPL"))
setup_default_uart();
mp_uart_init();
#else
#ifndef NDEBUG
stdio_init_all();
#endif
#endif

#if MICROPY_HW_ENABLE_USBDEV
Expand All @@ -90,10 +94,6 @@ int main(int argc, char **argv) {
mp_thread_init();
#endif

#ifndef NDEBUG
stdio_init_all();
#endif

// Start and initialise the RTC
datetime_t t = {
.year = 2021,
Expand Down

0 comments on commit 711bac5

Please sign in to comment.