kopia lustrzana https://github.com/Hamlib/Hamlib
During newcat.c AG format check reduce retries to zero to speed it up
https://github.com/Hamlib/Hamlib/issues/630pull/649/head
rodzic
8b82e3f569
commit
8e89aad2ea
|
@ -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
|
// This could be done by rig but easy enough to make it automagic
|
||||||
if (priv->ag_format < 0)
|
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__);
|
rig_debug(RIG_DEBUG_TRACE, "%s: AF format check determination...\n", __func__);
|
||||||
// Determine AG format
|
// Determine AG format
|
||||||
// =-1 == Undetermine
|
// =-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);
|
rig_debug(RIG_DEBUG_TRACE, "%s: ag_format=%d\n", __func__, priv->ag_format);
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
||||||
#define BACKEND_VER "20210309"
|
#define BACKEND_VER "20210326"
|
||||||
|
|
||||||
#define EOM_KEN ';'
|
#define EOM_KEN ';'
|
||||||
#define EOM_TH '\r'
|
#define EOM_TH '\r'
|
||||||
|
|
Ładowanie…
Reference in New Issue