Skip to content

Commit ebbc5aa

Browse files
authored
Merge pull request #9 from phdlee/version0.28
change delaytimes via cat
2 parents 95e5c1d + 587d485 commit ebbc5aa

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

ubitx_20/cat_libs.ino

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void CatSetPTT(boolean isPTTOn, byte fromType)
181181
void CatVFOToggle(boolean isSendACK, byte fromType)
182182
{
183183
if (fromType != 2 && fromType != 3) {
184-
menuVfoToggle(1);
184+
menuVfoToggle(1, 0);
185185
}
186186

187187
if (isSendACK)
@@ -470,8 +470,8 @@ void WriteEEPRom_FT817(byte fromType)
470470
sideTone = (sideTonePitch * 50 + 300) + sideToneSub;
471471
printLineF2(F("Sidetone set! CAT"));
472472
EEPROM.put(CW_SIDETONE, sideTone);
473-
delay(500);
474-
printLine2("");
473+
delay(300); //If timeout errors occur in the calling software, remove them
474+
printLine2(""); //Ham radio deluxe is the only one that supports this feature yet. and ham radio deluxe has wait time as greater than 500ms
475475
}
476476
break;
477477

@@ -482,8 +482,8 @@ void WriteEEPRom_FT817(byte fromType)
482482
sideTone = (sideTonePitch * 50 + 300) + sideToneSub;
483483
printLineF2(F("Sidetone set! CAT"));
484484
EEPROM.put(CW_SIDETONE, sideTone);
485-
delay(500);
486-
printLine2("");
485+
delay(300); //If timeout errors occur in the calling software, remove them
486+
printLine2(""); //Ham radio deluxe is the only one that supports this feature yet. and ham radio deluxe has wait time as greater than 500ms
487487
}
488488
break;
489489

@@ -502,7 +502,7 @@ void WriteEEPRom_FT817(byte fromType)
502502
cwDelayTime = CAT_BUFF[2];
503503
printLineF2(F("CW Speed set!"));
504504
EEPROM.put(CW_DELAY, cwDelayTime);
505-
delay(500);
505+
delay(300);
506506
printLine2("");
507507
break;
508508
case 0x62 : //
@@ -511,7 +511,7 @@ void WriteEEPRom_FT817(byte fromType)
511511
cwSpeed = 1200 / ((CAT_BUFF[2] & 0x3F) + 4);
512512
printLineF2(F("CW Speed set!"));
513513
EEPROM.put(CW_SPEED, cwSpeed);
514-
delay(500);
514+
delay(300);
515515
printLine2("");
516516

517517
break;
@@ -629,7 +629,6 @@ void Check_Cat(byte fromType)
629629
}
630630
else if (Serial.available() < 5)
631631
{
632-
/*
633632
//First Arrived
634633
if (rxBufferCheckCount == 0)
635634
{
@@ -649,8 +648,6 @@ void Check_Cat(byte fromType)
649648
rxBufferCheckCount = Serial.available();
650649
rxBufferArriveTime = millis() + CAT_RECEIVE_TIMEOUT; //Set time for timeout
651650
}
652-
*/
653-
654651
return;
655652
}
656653

ubitx_20/ubitx_menu.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ void byteWithFreqToMode(byte modeValue){
155155
isUSB = 0;
156156
}
157157

158-
void menuVfoToggle(int btn)
158+
void menuVfoToggle(int btn, char isUseDelayTime)
159159
{
160160
if (!btn){
161161
if (vfoActive == VFO_A)
@@ -189,8 +189,9 @@ void menuVfoToggle(int btn)
189189

190190
ritDisable();
191191

192-
//updateDisplay();
193-
delay_background(500, 0);
192+
if (isUseDelayTime == 1) //Found Issue in wsjt-x Linux 32bit
193+
delay_background(500, 0);
194+
194195
printLine2ClearAndUpdate();
195196
//exit the menu
196197
menuOn = 0;
@@ -803,7 +804,7 @@ void doMenu(){
803804
else if (select < 20)
804805
menuRitToggle(btnState);
805806
else if (select < 30)
806-
menuVfoToggle(btnState);
807+
menuVfoToggle(btnState, 1);
807808
else if (select < 40)
808809
menuSidebandToggle(btnState);
809810
else if (select < 50)

0 commit comments

Comments
 (0)