Remove forcine Icom rigs to always set mode.

If mode does not change then don't set it
https://github.com/Hamlib/Hamlib/issues/1580
pull/1630/head
Mike Black W9MDB 2024-11-06 09:43:14 -06:00
rodzic 5c269964c2
commit ec36b21f54
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -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__,