kopia lustrzana https://github.com/Hamlib/Hamlib
Allow FV command to fail for TS-590S and default firmwave rev to 1.0
rodzic
74b3d13d6a
commit
982f88035c
|
@ -831,10 +831,12 @@ int kenwood_open(RIG *rig)
|
||||||
|
|
||||||
if (RIG_OK != err)
|
if (RIG_OK != err)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_ERR, "%s: cannot get f/w version\n", __func__);
|
rig_debug(RIG_DEBUG_ERR, "%s: cannot get f/w version, defaulting to 1.0\n", __func__);
|
||||||
rig->state.rigport.retry = retry_save;
|
rig->state.rigport.retry = retry_save;
|
||||||
RETURNFUNC(err);
|
priv->fw_rev_uint = 100;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
/* store the data after the "FV" which should be a f/w version
|
/* store the data after the "FV" which should be a f/w version
|
||||||
string of the form n.n e.g. 1.07 */
|
string of the form n.n e.g. 1.07 */
|
||||||
|
@ -851,9 +853,10 @@ int kenwood_open(RIG *rig)
|
||||||
rig->state.rigport.retry = retry_save;
|
rig->state.rigport.retry = retry_save;
|
||||||
RETURNFUNC(-RIG_EPROTO);
|
RETURNFUNC(-RIG_EPROTO);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s: found f/w version %s\n", __func__,
|
rig_debug(RIG_DEBUG_TRACE, "%s: found f/w version %.1f\n", __func__,
|
||||||
priv->fw_rev);
|
priv->fw_rev_uint/100.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!RIG_IS_XG3 && -RIG_ETIMEOUT == err)
|
if (!RIG_IS_XG3 && -RIG_ETIMEOUT == err)
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
||||||
#define BACKEND_VER "20220206"
|
#define BACKEND_VER "20220211"
|
||||||
|
|
||||||
#define EOM_KEN ';'
|
#define EOM_KEN ';'
|
||||||
#define EOM_TH '\r'
|
#define EOM_TH '\r'
|
||||||
|
|
Ładowanie…
Reference in New Issue