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
{
Iambic_Key = true;
if (cwKeyType = 1)
if (cwKeyType == 1)
keyerControl &= ~IAMBICB;
else
keyerControl |= IAMBICB;

View File

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