summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2017-10-26 22:53:28 -0400
committerDan Halbert <halbert@halwitz.org>2017-10-27 17:32:13 -0400
commit8e45dc041f8d98c62a580b7d6a34768664a972b8 (patch)
treeaba5c2a7cc5168882d9263971f6606761855cea9 /main.c
parent10b3a901899c4725bf263ad4cda13c58751deccf (diff)
Read serial input as a background task so we can check for the interrupt character.
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index ba1e0e401..a2e4b9f72 100644
--- a/main.c
+++ b/main.c
@@ -127,6 +127,7 @@ bool start_mp(safe_mode_t safe_mode) {
pyexec_result_t result;
bool found_main = false;
+
if (safe_mode != NO_SAFE_MODE) {
serial_write(MSG_SAFE_MODE_NO_MAIN);
} else {