diff options
| -rw-r--r-- | ports/rp2/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ports/rp2/main.c b/ports/rp2/main.c index afc22aee7..9e69d159e 100644 --- a/ports/rp2/main.c +++ b/ports/rp2/main.c @@ -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 @@ -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, |
