summaryrefslogtreecommitdiffstatshomepage
path: root/lib
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-01-22 12:33:19 +1100
committerDamien George <damien.p.george@gmail.com>2017-01-22 12:33:19 +1100
commit211244d1f3c58d8b3a79a5c25c398fb646f1521a (patch)
treedc01a5f2474c9ed94d053c974f421b6793f57d14 /lib
parentc594cf12ed2174bb545a2ec2f6301675677f12e6 (diff)
downloadmicropython-211244d1f3c58d8b3a79a5c25c398fb646f1521a.tar.gz
micropython-211244d1f3c58d8b3a79a5c25c398fb646f1521a.zip
lib/utils/pyexec: Only print help prompt if HELP feature is enabled.
Diffstat (limited to 'lib')
-rw-r--r--lib/utils/pyexec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/utils/pyexec.c b/lib/utils/pyexec.c
index 61cd5a98ce..5e2f242987 100644
--- a/lib/utils/pyexec.c
+++ b/lib/utils/pyexec.c
@@ -229,7 +229,9 @@ STATIC int pyexec_friendly_repl_process_char(int c) {
// reset friendly REPL
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");
+ #if MICROPY_PY_BUILTINS_HELP
mp_hal_stdout_tx_str("Type \"help()\" for more information.\r\n");
+ #endif
goto input_restart;
} else if (ret == CHAR_CTRL_C) {
// break
@@ -378,7 +380,9 @@ int pyexec_friendly_repl(void) {
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");
+ #if MICROPY_PY_BUILTINS_HELP
mp_hal_stdout_tx_str("Type \"help()\" for more information.\r\n");
+ #endif
// to test ctrl-C
/*