check for input in CW mode

pull/245/head
alanbjohnston 3 years ago committed by GitHub
parent 2436928e69
commit 7f0bc8b565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3894,12 +3894,15 @@ void transmit_string(char *string) {
// Serial.println("space between words"); // Serial.println("space between words");
sleep((6.0 * (float)morse_timing)/1000.0); sleep((6.0 * (float)morse_timing)/1000.0);
j++; j++;
if (Serial.available() || BOOTSEL || !digitalRead(10)) // check for button press of serial input
cw_stop = true;
/*
if (prompt) { if (prompt) {
// Serial.println("Need to prompt for input!"); // Serial.println("Need to prompt for input!");
prompt_for_input(); prompt_for_input();
prompt = false; prompt = false;
} }
*/
} }
} }
cw_stop = false; cw_stop = false;

Loading…
Cancel
Save

Powered by TurnKey Linux.