Hamlib errorcode negative

pull/266/head
Uwe 2022-08-14 19:54:05 +02:00
parent 86857a5296
commit e909540f8b
1 changed files with 3 additions and 1 deletions

View File

@ -329,7 +329,9 @@ void Hamlib::update_from_hamlib_()
pbwidth_t passband = 0;
vfo_t currVfo = RIG_VFO_A;
int result = rig_get_vfo(m_rig, &currVfo);
if (result != RIG_OK && result != RIG_ENAVAIL)
if (g_verbose) fprintf(stderr, "rig_get_vfo: error = %d \n", result);
//result=RIG_OK;
if (result != RIG_OK && result != -RIG_ENAVAIL)
{
if (g_verbose) fprintf(stderr, "rig_get_vfo: error = %s \n", rigerror(result));
}