kopia lustrzana https://github.com/Hamlib/Hamlib
Fix rigctld ptt_type to correctly reflect DTR/RTS
Might need to do this with some other values too github.com/Hamlib/Hamlib/issues/270pull/281/head
rodzic
94e8859a6f
commit
1dc461966d
|
@ -571,11 +571,6 @@ int main(int argc, char *argv[])
|
||||||
/*
|
/*
|
||||||
* ex: RIG_PTT_PARALLEL and /dev/parport0
|
* ex: RIG_PTT_PARALLEL and /dev/parport0
|
||||||
*/
|
*/
|
||||||
if (ptt_type != RIG_PTT_NONE)
|
|
||||||
{
|
|
||||||
my_rig->state.pttport.type.ptt = ptt_type;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (dcd_type != RIG_DCD_NONE)
|
if (dcd_type != RIG_DCD_NONE)
|
||||||
{
|
{
|
||||||
my_rig->state.dcdport.type.dcd = dcd_type;
|
my_rig->state.dcdport.type.dcd = dcd_type;
|
||||||
|
@ -630,6 +625,12 @@ int main(int argc, char *argv[])
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ptt_type != RIG_PTT_NONE)
|
||||||
|
{
|
||||||
|
my_rig->state.pttport.type.ptt = ptt_type;
|
||||||
|
my_rig->caps->ptt_type = ptt_type;
|
||||||
|
}
|
||||||
|
|
||||||
if (verbose > RIG_DEBUG_ERR)
|
if (verbose > RIG_DEBUG_ERR)
|
||||||
{
|
{
|
||||||
printf("Opened rig model %u, '%s'\n",
|
printf("Opened rig model %u, '%s'\n",
|
||||||
|
|
Ładowanie…
Reference in New Issue