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,6 +260,7 @@ float wpm = 10;
float ms_per_dit = 1000 * (60 / (50 * wpm)); float ms_per_dit = 1000 * (60 / (50 * wpm));
int word_space_ms = ms_per_dit * 7; int word_space_ms = ms_per_dit * 7;
// Hardcoding messages and WPM for now, will come back and make it more flexible. // Hardcoding messages and WPM for now, will come back and make it more flexible.
// 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 morseEffectTEST("TEST TEST TEST DE W1CDN ", ms_per_dit);
MorseEffect morseEffectMOE("MOE ", ms_per_dit); MorseEffect morseEffectMOE("MOE ", ms_per_dit);
MorseEffect morseEffectMOI("MOI ", ms_per_dit); MorseEffect morseEffectMOI("MOI ", ms_per_dit);