From 7f0bc8b5653dfb8fed49e4efb44159ddb877d84f Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 27 Nov 2022 16:53:43 -0500 Subject: [PATCH] check for input in CW mode --- cubesatsim/cubesatsim.ino | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index d0b751ea..e8fd747e 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -3894,12 +3894,15 @@ void transmit_string(char *string) { // Serial.println("space between words"); sleep((6.0 * (float)morse_timing)/1000.0); j++; - + if (Serial.available() || BOOTSEL || !digitalRead(10)) // check for button press of serial input + cw_stop = true; +/* if (prompt) { // Serial.println("Need to prompt for input!"); prompt_for_input(); prompt = false; - } + } +*/ } } cw_stop = false;