kopia lustrzana https://github.com/Hamlib/Hamlib
fix kenwood_set_mode for ts590s and mode CW, RTTY or AM
Current code always tries to set data mode with 'DAx' command after setting the mode. According to 'PC control command reference' manual that results in error for the CW, FSK and AM mode. The provided patch sends 'DAx' only if we have some of the other modes.libusb-1-0
rodzic
d3d859fb80
commit
528b6923bc
|
@ -1374,12 +1374,19 @@ int kenwood_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
|||
|
||||
if (RIG_MODEL_TS590S == rig->caps->rig_model
|
||||
|| RIG_MODEL_TS590SG == rig->caps->rig_model)
|
||||
{
|
||||
if (!(RIG_MODE_CW == mode
|
||||
|| RIG_MODE_CWR == mode
|
||||
|| RIG_MODE_AM == mode
|
||||
|| RIG_MODE_RTTY == mode
|
||||
|| RIG_MODE_RTTYR == mode))
|
||||
{
|
||||
/* supports DATA sub modes - see above */
|
||||
sprintf (buf, "DA%c", data_mode);
|
||||
err = kenwood_transaction (rig, buf, NULL, 0);
|
||||
if (err != RIG_OK) return err;
|
||||
}
|
||||
}
|
||||
|
||||
if (rig->caps->rig_model == RIG_MODEL_TS450S
|
||||
|| rig->caps->rig_model == RIG_MODEL_TS690S
|
||||
|
|
Ładowanie…
Reference in New Issue