fixed Key select bug

This commit is contained in:
phdlee 2018-01-31 10:44:23 +09:00
parent 85832de034
commit 4745790dfa
2 changed files with 5 additions and 2 deletions

View File

@ -869,7 +869,7 @@ void initSettings(){
else else
{ {
Iambic_Key = true; Iambic_Key = true;
if (cwKeyType = 1) if (cwKeyType == 1)
keyerControl &= ~IAMBICB; keyerControl &= ~IAMBICB;
else else
keyerControl |= IAMBICB; keyerControl |= IAMBICB;

View File

@ -87,6 +87,8 @@ void menuBand(int btn){
stepChangeCount = 0; stepChangeCount = 0;
} }
} }
//setFrequency(frequency + 200000l);
} }
else { //original source else { //original source
if (knob < 0 && frequency > 3000000l) if (knob < 0 && frequency > 3000000l)
@ -525,6 +527,7 @@ void menuSetupKeyType(int btn){
printLineF2(F("Press to set Key")); printLineF2(F("Press to set Key"));
delay_background(500, 0); delay_background(500, 0);
selectedKeyType = cwKeyType; selectedKeyType = cwKeyType;
while(!btnDown()){ while(!btnDown()){
//Display Key Type //Display Key Type
@ -564,7 +567,7 @@ void menuSetupKeyType(int btn){
else else
{ {
Iambic_Key = true; Iambic_Key = true;
if (cwKeyType = 1) if (cwKeyType == 1)
keyerControl &= ~IAMBICB; keyerControl &= ~IAMBICB;
else else
keyerControl |= IAMBICB; keyerControl |= IAMBICB;