Add back ability to send continuously.
This commit is contained in:
parent
a47cd1465a
commit
c8f9d823da
|
@ -696,13 +696,18 @@ void loop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// if you want to send continuous code, and it's not sending, then start it up
|
// 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
|
//jled
|
||||||
// morseToSend.Reset().Update();
|
// morseToSend.Reset().Update();
|
||||||
// morseToSend_blink.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
|
// 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.Update();
|
||||||
//morseToSend_blink.Update();
|
//morseToSend_blink.Update();
|
||||||
|
|
||||||
|
@ -742,7 +747,7 @@ void loop() {
|
||||||
// morseToSend.Stop(JLed::eStopMode::FULL_OFF).Update();
|
// morseToSend.Stop(JLed::eStopMode::FULL_OFF).Update();
|
||||||
// morseToSend_blink.Stop(JLed::eStopMode::FULL_OFF).Update();
|
// morseToSend_blink.Stop(JLed::eStopMode::FULL_OFF).Update();
|
||||||
//morses_sequence_blink.Stop();
|
//morses_sequence_blink.Stop();
|
||||||
sender.setMessage(String(""));
|
sender.setMessage(String("")); // Not sure this is the right way to stop things.
|
||||||
}
|
}
|
||||||
//morseToSend.Update();
|
//morseToSend.Update();
|
||||||
//sender.continueSending();
|
//sender.continueSending();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user