Add extra space at end of message to workaround Jled bug.

This commit is contained in:
mattbk 2023-09-09 13:14:28 -05:00
parent 40baa679e1
commit 2127d4a75a

View File

@ -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 =