Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit bfd155d

Browse files
author
Daniel Campora
committed
lib/utils/pyexec.c: By @Xykon. Show Pycom version alongside official MicroPython version.
1 parent 0e8673a commit bfd155d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/utils/pyexec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include "lib/mp-readline/readline.h"
4444
#include "lib/utils/pyexec.h"
4545
#include "genhdr/mpversion.h"
46+
#include "esp32/pycom_version.h"
4647

4748
pyexec_mode_kind_t pyexec_mode_kind = PYEXEC_MODE_FRIENDLY_REPL;
4849
int pyexec_system_exit = 0;
@@ -377,7 +378,7 @@ int pyexec_friendly_repl(void) {
377378
#endif
378379

379380
friendly_repl_reset:
380-
mp_hal_stdout_tx_str("MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "; " MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME "\r\n");
381+
mp_hal_stdout_tx_str("Pycom MicroPython " SW_VERSION_NUMBER " [" MICROPY_GIT_TAG "] on " MICROPY_BUILD_DATE "; " MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME "\r\n");
381382
mp_hal_stdout_tx_str("Type \"help()\" for more information.\r\n");
382383

383384
// to test ctrl-C

0 commit comments

Comments
 (0)