summaryrefslogtreecommitdiff
path: root/atmel-samd/main.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-03-27 20:12:30 +0100
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-03-27 20:12:30 +0100
commitf5caf8687086d1b3cf3a3b5f6d6218682beca5c2 (patch)
tree75898ecb24f369503a50bc97a8c47fca7db7c1d7 /atmel-samd/main.c
parentbe1ed7aae46d93c136bb18eacdd22143cd52c1da (diff)
atmel-samd: Add message for when auto reset is off. Fixes #112
Diffstat (limited to 'atmel-samd/main.c')
-rw-r--r--atmel-samd/main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/atmel-samd/main.c b/atmel-samd/main.c
index 47edc2537..8c22b6a6c 100644
--- a/atmel-samd/main.c
+++ b/atmel-samd/main.c
@@ -259,7 +259,7 @@ bool start_mp(void) {
#ifdef AUTORESET_DELAY_MS
if (cdc_enabled_at_start) {
mp_hal_stdout_tx_str("\r\n");
- mp_hal_stdout_tx_str("Auto-soft reset is on. Simply save files over USB to run them.\r\n");
+ mp_hal_stdout_tx_str("Auto-soft reset is on. Simply save files over USB to run them or enter REPL to disable.\r\n");
}
#endif
@@ -330,10 +330,14 @@ bool start_mp(void) {
if (!cdc_enabled_before && mp_cdc_enabled) {
if (cdc_enabled_at_start) {
mp_hal_stdout_tx_str("\r\n\r\n");
+ }
+
+ if (!cdc_enabled_at_start && autoreset_is_enabled()) {
+ mp_hal_stdout_tx_str("Auto-soft reset is on. Simply save files over USB to run them or enter REPL to disable.\r\n");
} else {
- mp_hal_stdout_tx_str("Auto-soft reset is on. Simply save files over USB to run them.\r\n");
+ mp_hal_stdout_tx_str("Auto-soft reset is off.\r\n");
}
- mp_hal_stdout_tx_str("Press any key to enter the REPL and disable auto-reset. Use CTRL-D to soft reset.\r\n");
+ mp_hal_stdout_tx_str("Press any key to enter the REPL. Use CTRL-D to soft reset.\r\n");
}
if (cdc_enabled_before && !mp_cdc_enabled) {
cdc_enabled_at_start = false;