kopia lustrzana https://github.com/Hamlib/Hamlib
Merge pull request #972 from challinan/master
Add support for K3 Morse send via KY(W) commandpull/974/head
commit
1874f3a92a
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
#define K3_FUNC_ALL (RIG_FUNC_NB|RIG_FUNC_VOX|RIG_FUNC_APF|\
|
#define K3_FUNC_ALL (RIG_FUNC_NB|RIG_FUNC_VOX|RIG_FUNC_APF|\
|
||||||
RIG_FUNC_DUAL_WATCH|RIG_FUNC_DIVERSITY|\
|
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|\
|
#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|\
|
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');
|
SNPRINTF(buf, sizeof(buf), "DV%c", (status == 0) ? '0' : '1');
|
||||||
break;
|
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:
|
default:
|
||||||
return kenwood_set_func(rig, vfo, func, status);
|
return kenwood_set_func(rig, vfo, func, status);
|
||||||
}
|
}
|
||||||
|
|
|
@ -337,6 +337,7 @@ transaction_write:
|
||||||
int skip = strncmp(cmdstr, "RX", 2) == 0;
|
int skip = strncmp(cmdstr, "RX", 2) == 0;
|
||||||
skip |= strncmp(cmdstr, "RU", 2) == 0;
|
skip |= strncmp(cmdstr, "RU", 2) == 0;
|
||||||
skip |= strncmp(cmdstr, "RD", 2) == 0;
|
skip |= strncmp(cmdstr, "RD", 2) == 0;
|
||||||
|
skip |= strncmp(cmdstr, "KYW", 3) == 0;
|
||||||
|
|
||||||
if (skip)
|
if (skip)
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue