From bd52de59d2851bd9696f07d0d1d2d021a6b323b8 Mon Sep 17 00:00:00 2001 From: phdlee Date: Mon, 19 Mar 2018 10:13:30 +0900 Subject: [PATCH] bug fixed (found gereld) Autokey on Rit bug --- ubitx_20/ubitx_20.ino | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ubitx_20/ubitx_20.ino b/ubitx_20/ubitx_20.ino index 8f95241..5f4516b 100644 --- a/ubitx_20/ubitx_20.ino +++ b/ubitx_20/ubitx_20.ino @@ -707,8 +707,7 @@ void doTuningWithThresHold(){ (vfoActive == VFO_B && ((isDialLock & 0x02) == 0x02))) return; - if (isCWAutoMode == 0 || cwAutoDialType == 1) - s = enc_read(); + s = enc_read(); //if time is exceeded, it is recognized as an error, //ignore exists values, because of errors @@ -1179,12 +1178,13 @@ void loop(){ //tune only when not tranmsitting if (!inTx){ - if (ritOn) - doRIT(); - //else if (isIFShift) - // doIFShift(); - else - doTuningWithThresHold(); + if (isCWAutoMode == 0 || cwAutoDialType == 1) + { + if (ritOn) + doRIT(); + else + doTuningWithThresHold(); + } if (isCWAutoMode == 0 && beforeIdle_ProcessTime < millis() - 250) { idle_process();