kopia lustrzana https://github.com/Hamlib/Hamlib
rodzic
ccca746fa7
commit
bfc6d19a4b
|
@ -554,6 +554,7 @@ static int frontend_set_conf(RIG *rig, token_t token, const char *val)
|
|||
}
|
||||
|
||||
rs->pttport.parm.cm108.ptt_bitnum = val_i;
|
||||
rs->rigport.parm.cm108.ptt_bitnum = val_i;
|
||||
rs->pttport_deprecated.parm.cm108.ptt_bitnum = val_i;
|
||||
break;
|
||||
|
||||
|
|
|
@ -586,8 +586,13 @@ RIG *HAMLIB_API rig_init(rig_model_t rig_model)
|
|||
*/
|
||||
case RIG_PORT_CM108:
|
||||
strncpy(rs->rigport.pathname, DEFAULT_CM108_PORT, HAMLIB_FILPATHLEN);
|
||||
rs->rigport.parm.cm108.ptt_bitnum = DEFAULT_CM108_PTT_BITNUM;
|
||||
rs->pttport.parm.cm108.ptt_bitnum = DEFAULT_CM108_PTT_BITNUM;
|
||||
|
||||
if (rs->rigport.parm.cm108.ptt_bitnum == 0)
|
||||
{
|
||||
rs->rigport.parm.cm108.ptt_bitnum = DEFAULT_CM108_PTT_BITNUM;
|
||||
rs->pttport.parm.cm108.ptt_bitnum = DEFAULT_CM108_PTT_BITNUM;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case RIG_PORT_GPIO:
|
||||
|
|
Ładowanie…
Reference in New Issue