summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorScott Shawcroft <scott@chickadee.tech>2016-10-25 14:27:59 -0700
committerScott Shawcroft <scott@chickadee.tech>2016-10-25 18:36:37 -0700
commitd189a3f3cf1b9aaaccf0996e8846aabe6e70cb4a (patch)
tree079bfb21ec2d46e60d22ba5bcca0e6e5f6f94574 /lib/utils
parent614c1fdba2aca393e6769221cf8d8b55ee3464fe (diff)
atmel-samd: Support auto-reset based on USB write activity.
It will soft-reboot micropython after a burst of writes to the file system. This means that after you save files on your computer they will be automatically rerun. This can be disabled in the build by unsetting AUTORESET_TIMER in mpconfigboard.h. Using the REPL will also prevent the soft resets until you reset with CTRL-D manually.
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/pyexec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/pyexec.c b/lib/utils/pyexec.c
index f9bbf68a1..ce68e40b3 100644
--- a/lib/utils/pyexec.c
+++ b/lib/utils/pyexec.c
@@ -226,6 +226,7 @@ STATIC int pyexec_friendly_repl_process_char(int c) {
} else if (ret == CHAR_CTRL_B) {
// reset friendly REPL
mp_hal_stdout_tx_str("\r\n");
+ mp_hal_stdout_tx_str("\r\n");
mp_hal_stdout_tx_str("Adafruit MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "; " MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME "\r\n");
// mp_hal_stdout_tx_str("Type \"help()\" for more information.\r\n");
goto input_restart;