kopia lustrzana https://github.com/Hamlib/Hamlib
Remove forcine Icom rigs to always set mode.
If mode does not change then don't set it https://github.com/Hamlib/Hamlib/issues/1580pull/1630/head
rodzic
5c269964c2
commit
ec36b21f54
|
@ -2824,8 +2824,14 @@ int HAMLIB_API rig_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
|||
retcode = caps->get_mode(rig, vfo, &mode_curr, &width_curr);
|
||||
|
||||
// For Icom rigs we may need to force the filter so we always set mode
|
||||
#if 0
|
||||
// This should not be necessary anymore with the new filter method for Icom rigs
|
||||
// Hopefully fixes issue https://github.com/Hamlib/Hamlib/issues/1580
|
||||
if (retcode == RIG_OK && mode == mode_curr
|
||||
&& RIG_ICOM != RIG_BACKEND_NUM(rig->caps->rig_model))
|
||||
#else
|
||||
if (retcode == RIG_OK && mode == mode_curr)
|
||||
#endif
|
||||
{
|
||||
rig_debug(RIG_DEBUG_VERBOSE,
|
||||
"%s: mode already %s and bw change not requested\n", __func__,
|
||||
|
|
Ładowanie…
Reference in New Issue