kopia lustrzana https://github.com/Hamlib/Hamlib
icom.c: Drop width check. Other code assumes != NULL.
I am not sure if the intention was to check for width == default. But that never worked, so for now do not change behaviour.pull/771/head
rodzic
51d4473ef0
commit
83a8b98a86
|
@ -2220,8 +2220,6 @@ int icom_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
||||||
|
|
||||||
// if we already set width we won't update with except during set_vfo or set_mode
|
// if we already set width we won't update with except during set_vfo or set_mode
|
||||||
// reason is we can't get width without swapping vfos -- yuck!!
|
// reason is we can't get width without swapping vfos -- yuck!!
|
||||||
if (width != NULL)
|
|
||||||
{
|
|
||||||
if (vfo & (RIG_VFO_A | RIG_VFO_MAIN | RIG_VFO_SUB_A | RIG_VFO_MAIN_A |
|
if (vfo & (RIG_VFO_A | RIG_VFO_MAIN | RIG_VFO_SUB_A | RIG_VFO_MAIN_A |
|
||||||
RIG_VFO_CURR))
|
RIG_VFO_CURR))
|
||||||
{
|
{
|
||||||
|
@ -2279,7 +2277,6 @@ int icom_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
||||||
rig_strvfo(vfo), rig_strvfo(vfosave));
|
rig_strvfo(vfo), rig_strvfo(vfosave));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
|
|
Ładowanie…
Reference in New Issue