Don't play bools if morseMenu is off

This commit is contained in:
Reed Nightingale 2020-01-26 11:15:11 -08:00
parent b0b11a93f0
commit 953a59f309

View File

@ -117,6 +117,9 @@ void morseText(char *text, uint16_t dit_duration_ms){
}
void morseBool(bool val){
if(!globalSettings.morseMenuOn){
return;
}
tone(CW_TONE, globalSettings.cwSideToneFreq + (val ? RELATIVE_OFFSET_HZ : -RELATIVE_OFFSET_HZ));
delay(3*globalSettings.cwDitDurationMs);
noTone(CW_TONE);