Make check for non-working split query more general

Some Hamlib  back ends clain to  support split queries but  they don't
work. The existing code to only try  a split query once per session if
it fails  has been extended to  any error from Hamlib  returned from a
split query.

Merged from wsjtx-1.4 branch.



git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4972 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-02-18 22:29:47 +00:00
parent e45f5b36a5
commit fc22351e02

View File

@ -772,8 +772,11 @@ void HamlibTransceiver::poll ()
update_split (false); update_split (false);
} }
else if (-RIG_ENAVAIL == rc || -RIG_ENIMPL == rc) // Some rigs (Icom) don't have a way of reporting SPLIT mode else
{ {
// Some rigs (Icom) don't have a way of reporting SPLIT
// mode
#if WSJT_TRACE_CAT && WSJT_TRACE_CAT_POLLS #if WSJT_TRACE_CAT && WSJT_TRACE_CAT_POLLS
qDebug () << "HamlibTransceiver::poll rig_get_split_vfo can't do on this rig"; qDebug () << "HamlibTransceiver::poll rig_get_split_vfo can't do on this rig";
#endif #endif
@ -781,10 +784,6 @@ void HamlibTransceiver::poll ()
// just report how we see it based on prior commands // just report how we see it based on prior commands
split_query_works_ = false; split_query_works_ = false;
} }
else
{
error_check (rc, tr ("getting split TX VFO"));
}
} }
if (RIG_PTT_NONE != rig_->state.pttport.type.ptt && rig_->caps->get_ptt) if (RIG_PTT_NONE != rig_->state.pttport.type.ptt && rig_->caps->get_ptt)