Add support for K3 Morse send via KY(W) command

pull/972/head
challinan 2022-02-20 22:19:26 -05:00
rodzic d6f05e1974
commit a41df58487
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -41,7 +41,7 @@
#define K3_FUNC_ALL (RIG_FUNC_NB|RIG_FUNC_VOX|RIG_FUNC_APF|\
RIG_FUNC_DUAL_WATCH|RIG_FUNC_DIVERSITY|\
RIG_FUNC_LOCK|RIG_FUNC_RIT|RIG_FUNC_XIT)
RIG_FUNC_LOCK|RIG_FUNC_RIT|RIG_FUNC_XIT|RIG_FUNC_SEND_MORSE)
#define K3_LEVEL_ALL (RIG_LEVEL_ATT|RIG_LEVEL_PREAMP|RIG_LEVEL_AGC|RIG_LEVEL_SQL|\
RIG_LEVEL_STRENGTH|RIG_LEVEL_ALC|RIG_LEVEL_RFPOWER|RIG_LEVEL_KEYSPD|\
@ -2365,6 +2365,11 @@ int k3_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
SNPRINTF(buf, sizeof(buf), "DV%c", (status == 0) ? '0' : '1');
break;
case RIG_FUNC_SEND_MORSE:
// Transmit a CW character - K3 does not return any response
snprintf(buf, sizeof(buf), "KYW%c", status);
break;
default:
return kenwood_set_func(rig, vfo, func, status);
}

Wyświetl plik

@ -337,6 +337,7 @@ transaction_write:
int skip = strncmp(cmdstr, "RX", 2) == 0;
skip |= strncmp(cmdstr, "RU", 2) == 0;
skip |= strncmp(cmdstr, "RD", 2) == 0;
skip |= strncmp(cmdstr, "KYW", 3) == 0;
if (skip)
{