mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-11-02 12:27:20 -04:00
Don't play bools if morseMenu is off
This commit is contained in:
parent
b0b11a93f0
commit
953a59f309
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user