kopia lustrzana https://github.com/Hamlib/Hamlib
Made PTT and DCD options consistent between rigctl and rigctld
rodzic
ed50f580de
commit
99e1948cd3
|
@ -352,6 +352,14 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
ptt_type = RIG_PTT_CM108;
|
ptt_type = RIG_PTT_CM108;
|
||||||
}
|
}
|
||||||
|
else if (!strcmp(optarg, "GPIO"))
|
||||||
|
{
|
||||||
|
ptt_type = RIG_PTT_GPIO;
|
||||||
|
}
|
||||||
|
else if (!strcmp(optarg, "GPION"))
|
||||||
|
{
|
||||||
|
ptt_type = RIG_PTT_GPION;
|
||||||
|
}
|
||||||
else if (!strcmp(optarg, "NONE"))
|
else if (!strcmp(optarg, "NONE"))
|
||||||
{
|
{
|
||||||
ptt_type = RIG_PTT_NONE;
|
ptt_type = RIG_PTT_NONE;
|
||||||
|
@ -390,6 +398,18 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
dcd_type = RIG_DCD_PARALLEL;
|
dcd_type = RIG_DCD_PARALLEL;
|
||||||
}
|
}
|
||||||
|
else if (!strcmp(optarg, "CM108"))
|
||||||
|
{
|
||||||
|
dcd_type = RIG_DCD_CM108;
|
||||||
|
}
|
||||||
|
else if (!strcmp(optarg, "GPIO"))
|
||||||
|
{
|
||||||
|
dcd_type = RIG_DCD_GPIO;
|
||||||
|
}
|
||||||
|
else if (!strcmp(optarg, "GPION"))
|
||||||
|
{
|
||||||
|
dcd_type = RIG_DCD_GPION;
|
||||||
|
}
|
||||||
else if (!strcmp(optarg, "NONE"))
|
else if (!strcmp(optarg, "NONE"))
|
||||||
{
|
{
|
||||||
dcd_type = RIG_DCD_NONE;
|
dcd_type = RIG_DCD_NONE;
|
||||||
|
|
Ładowanie…
Reference in New Issue