fixed cw side tone setup

This commit is contained in:
phdlee 2017-12-28 19:10:53 +09:00
parent ae8d03601d
commit 9b8ee8b489
1 changed files with 2 additions and 2 deletions

View File

@ -485,7 +485,7 @@ void menuSetupCwTone(int btn){
tone(CW_TONE, sideTone);
//disable all clock 1 and clock 2
while (digitalRead(PTT) == LOW || !btnDown())
while (digitalRead(PTT) == HIGH && !btnDown())
{
knob = enc_read();
@ -506,7 +506,7 @@ void menuSetupCwTone(int btn){
//save the setting
if (digitalRead(PTT) == LOW){
printLine2("Sidetone set! ");
EEPROM.put(CW_SIDETONE, usbCarrier);
EEPROM.put(CW_SIDETONE, sideTone);
delay(2000);
}
else