From b328e8398bf92ceee94a09fa1e5791b06981a69e Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 17 Aug 2022 06:04:46 -0400 Subject: [PATCH] don't check for serial in isr if prompting for input --- cubesatsim/cubesatsim.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 74ed9de1..799709a2 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -3608,7 +3608,9 @@ void load_files() { } void serial_input() { - + + if (!prompt) { // only query if not in the middle of prompting + if (Serial.available() > 0) { // check for user input on serial port // blink(50); @@ -3708,6 +3710,7 @@ void serial_input() { sleep(2.0); } } + } } void prompt_for_input() {