Allow FV command to fail for TS-590S and default firmwave rev to 1.0

pull/976/head
Mike Black W9MDB 2022-02-11 12:14:19 -06:00
rodzic 74b3d13d6a
commit 982f88035c
2 zmienionych plików z 8 dodań i 5 usunięć

Wyświetl plik

@ -831,10 +831,12 @@ int kenwood_open(RIG *rig)
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;
RETURNFUNC(err);
priv->fw_rev_uint = 100;
}
else
{
/* store the data after the "FV" which should be a f/w version
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;
RETURNFUNC(-RIG_EPROTO);
}
}
rig_debug(RIG_DEBUG_TRACE, "%s: found f/w version %s\n", __func__,
priv->fw_rev);
rig_debug(RIG_DEBUG_TRACE, "%s: found f/w version %.1f\n", __func__,
priv->fw_rev_uint/100.0);
}
if (!RIG_IS_XG3 && -RIG_ETIMEOUT == err)

Wyświetl plik

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