From c8f9d823dac89eb735e1984f5c3bb7d9da1d7c52 Mon Sep 17 00:00:00 2001 From: mattbk Date: Thu, 14 Sep 2023 16:36:22 -0500 Subject: [PATCH] Add back ability to send continuously. --- vulpes/src/main.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vulpes/src/main.cpp b/vulpes/src/main.cpp index d1f30e8..4a1e269 100644 --- a/vulpes/src/main.cpp +++ b/vulpes/src/main.cpp @@ -696,13 +696,18 @@ void loop() { } // if you want to send continuous code, and it's not sending, then start it up - if((yourInputSend == 1) & (morseToSend.IsRunning() == false)){ + if((yourInputSend == 1)){;// & (morseToSend.IsRunning() == false)){ //jled // morseToSend.Reset().Update(); // morseToSend_blink.Reset().Update(); + if (!sender.continueSending()){ + // Set the internal counters to the message's beginning. + // Here, this results in repeating the message indefinitely. + sender.startSending(); + } // if you want to send continuous code, and it is sending, keep sending - } else if((yourInputSend == 1) & (morseToSend.IsRunning() == true)){ + // } else if((yourInputSend == 1) & (morseToSend.IsRunning() == true)){ //morseToSend.Update(); //morseToSend_blink.Update(); @@ -742,7 +747,7 @@ void loop() { // morseToSend.Stop(JLed::eStopMode::FULL_OFF).Update(); // morseToSend_blink.Stop(JLed::eStopMode::FULL_OFF).Update(); //morses_sequence_blink.Stop(); - sender.setMessage(String("")); + sender.setMessage(String("")); // Not sure this is the right way to stop things. } //morseToSend.Update(); //sender.continueSending();