Skip to content
Snippets Groups Projects
Commit 211244d1 authored by Damien George's avatar Damien George
Browse files

lib/utils/pyexec: Only print help prompt if HELP feature is enabled.

parent c594cf12
No related branches found
No related tags found
No related merge requests found
...@@ -229,7 +229,9 @@ STATIC int pyexec_friendly_repl_process_char(int c) { ...@@ -229,7 +229,9 @@ STATIC int pyexec_friendly_repl_process_char(int c) {
// reset friendly REPL // reset friendly REPL
mp_hal_stdout_tx_str("\r\n"); mp_hal_stdout_tx_str("\r\n");
mp_hal_stdout_tx_str("MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "; " MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME "\r\n"); mp_hal_stdout_tx_str("MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "; " MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME "\r\n");
#if MICROPY_PY_BUILTINS_HELP
mp_hal_stdout_tx_str("Type \"help()\" for more information.\r\n"); mp_hal_stdout_tx_str("Type \"help()\" for more information.\r\n");
#endif
goto input_restart; goto input_restart;
} else if (ret == CHAR_CTRL_C) { } else if (ret == CHAR_CTRL_C) {
// break // break
...@@ -378,7 +380,9 @@ int pyexec_friendly_repl(void) { ...@@ -378,7 +380,9 @@ int pyexec_friendly_repl(void) {
friendly_repl_reset: friendly_repl_reset:
mp_hal_stdout_tx_str("MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "; " MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME "\r\n"); mp_hal_stdout_tx_str("MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "; " MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME "\r\n");
#if MICROPY_PY_BUILTINS_HELP
mp_hal_stdout_tx_str("Type \"help()\" for more information.\r\n"); mp_hal_stdout_tx_str("Type \"help()\" for more information.\r\n");
#endif
// to test ctrl-C // to test ctrl-C
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment