From d189a3f3cf1b9aaaccf0996e8846aabe6e70cb4a Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 25 Oct 2016 14:27:59 -0700 Subject: 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. --- lib/utils/pyexec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/utils') 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; -- cgit v1.2.3