From 2127d4a75a1c661578fc1bb417043be9c27c6822 Mon Sep 17 00:00:00 2001 From: mattbk Date: Sat, 9 Sep 2023 13:14:28 -0500 Subject: [PATCH] Add extra space at end of message to workaround Jled bug. --- vulpes/src/main.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/vulpes/src/main.cpp b/vulpes/src/main.cpp index a3e948b..66a5c09 100644 --- a/vulpes/src/main.cpp +++ b/vulpes/src/main.cpp @@ -260,12 +260,13 @@ float wpm = 10; float ms_per_dit = 1000 * (60 / (50 * wpm)); int word_space_ms = ms_per_dit * 7; // Hardcoding messages and WPM for now, will come back and make it more flexible. -MorseEffect morseEffectTEST("TEST TEST TEST DE W1CDN", ms_per_dit); -MorseEffect morseEffectMOE("MOE", ms_per_dit); -MorseEffect morseEffectMOI("MOI", ms_per_dit); -MorseEffect morseEffectMOS("MOS", ms_per_dit); -MorseEffect morseEffectMOH("MOH", ms_per_dit); -MorseEffect morseEffectMO5("MO5", ms_per_dit); +// Extra space at the end to get around https://github.com/jandelgado/jled/issues/122 on cycle mode +MorseEffect morseEffectTEST("TEST TEST TEST DE W1CDN ", ms_per_dit); +MorseEffect morseEffectMOE("MOE ", ms_per_dit); +MorseEffect morseEffectMOI("MOI ", ms_per_dit); +MorseEffect morseEffectMOS("MOS ", ms_per_dit); +MorseEffect morseEffectMOH("MOH ", ms_per_dit); +MorseEffect morseEffectMO5("MO5 ", ms_per_dit); // CW for keyer auto morseTEST =