kopia lustrzana https://github.com/Hamlib/Hamlib
Add some more deprecated port copies
rodzic
92eb1bc4bc
commit
6934536e09
|
@ -486,7 +486,6 @@ int main(int argc, char *argv[])
|
|||
if (rig_file)
|
||||
{
|
||||
strncpy(my_rig->state.rigport.pathname, rig_file, HAMLIB_FILPATHLEN - 1);
|
||||
strncpy(my_rig->state.rigport_deprecated.pathname, rig_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -495,25 +494,21 @@ int main(int argc, char *argv[])
|
|||
if (ptt_type != RIG_PTT_NONE)
|
||||
{
|
||||
my_rig->state.pttport.type.ptt = ptt_type;
|
||||
my_rig->state.pttport_deprecated.type.ptt = ptt_type;
|
||||
}
|
||||
|
||||
if (dcd_type != RIG_DCD_NONE)
|
||||
{
|
||||
my_rig->state.dcdport.type.dcd = dcd_type;
|
||||
my_rig->state.dcdport_deprecated.type.dcd = dcd_type;
|
||||
}
|
||||
|
||||
if (ptt_file)
|
||||
{
|
||||
strncpy(my_rig->state.pttport.pathname, ptt_file, HAMLIB_FILPATHLEN - 1);
|
||||
strncpy(my_rig->state.pttport_deprecated.pathname, ptt_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
if (dcd_file)
|
||||
{
|
||||
strncpy(my_rig->state.dcdport.pathname, dcd_file, HAMLIB_FILPATHLEN - 1);
|
||||
strncpy(my_rig->state.dcdport_deprecated.pathname, dcd_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/* FIXME: bound checking and port type == serial */
|
||||
|
|
Ładowanie…
Reference in New Issue