During newcat.c AG format check reduce retries to zero to speed it up

https://github.com/Hamlib/Hamlib/issues/630
pull/649/head
Michael Black W9MDB 2021-03-26 22:32:08 -05:00
rodzic 8b82e3f569
commit 8e89aad2ea
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -2816,6 +2816,8 @@ int kenwood_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
// This could be done by rig but easy enough to make it automagic
if (priv->ag_format < 0)
{
int retry_save = rig->state.rigport.retry;
rig->state.rigport.retry = 0; // speed up this check so no retries
rig_debug(RIG_DEBUG_TRACE, "%s: AF format check determination...\n", __func__);
// Determine AG format
// =-1 == Undetermine
@ -2852,6 +2854,8 @@ int kenwood_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
}
}
}
rig->state.rigport.retry = retry_save;
}
rig_debug(RIG_DEBUG_TRACE, "%s: ag_format=%d\n", __func__, priv->ag_format);

Wyświetl plik

@ -28,7 +28,7 @@
#include "token.h"
#include "misc.h"
#define BACKEND_VER "20210309"
#define BACKEND_VER "20210326"
#define EOM_KEN ';'
#define EOM_TH '\r'