kopia lustrzana https://github.com/Hamlib/Hamlib
For Barrett add some debug and fix another debug
https://github.com/Hamlib/Hamlib/issues/923pull/928/head
rodzic
9c099165d5
commit
64847e5c30
|
@ -101,14 +101,14 @@ static int barrett4050_open(RIG *rig)
|
|||
|
||||
if (retval != RIG_OK)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_ERR, "%s: result=%s\n", __func__, response);
|
||||
rig_debug(RIG_DEBUG_ERR, "%s(%d): result=%s\n", __func__, __LINE__, response);
|
||||
}
|
||||
|
||||
retval = barrett_transaction(rig, "IC", 0, &response);
|
||||
|
||||
if (retval == RIG_OK)
|
||||
if (retval != RIG_OK)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_ERR, "%s: result=%s\n", __func__, response);
|
||||
rig_debug(RIG_DEBUG_ERR, "%s(%d): result=%s\n", __func__, __LINE__, response);
|
||||
}
|
||||
|
||||
RETURNFUNC(RIG_OK);
|
||||
|
@ -119,7 +119,7 @@ const struct rig_caps barrett4050_caps =
|
|||
RIG_MODEL(RIG_MODEL_BARRETT_4050),
|
||||
.model_name = "4050",
|
||||
.mfg_name = "Barrett",
|
||||
.version = BACKEND_VER ".0e",
|
||||
.version = BACKEND_VER ".0f",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
|
|
@ -93,6 +93,7 @@ int barrett_transaction(RIG *rig, char *cmd, int expected, char **result)
|
|||
|
||||
if (retval < 0)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_ERR, "%s(%d): error in read_string\n", __func__, __LINE__);
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
|
@ -102,11 +103,11 @@ int barrett_transaction(RIG *rig, char *cmd, int expected, char **result)
|
|||
|
||||
if (retval < 0)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_ERR, "%s(%d): error in read_block\n", __func__, __LINE__);
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: retval=%d\n", __func__, retval);
|
||||
p = priv->ret_data;
|
||||
xon = p[0];
|
||||
xoff = p[strlen(p) - 1];
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#define BACKEND_VER "20220112"
|
||||
#define BACKEND_VER "20220113"
|
||||
|
||||
#define EOM "\x0d"
|
||||
#define TRUE 1
|
||||
|
|
Ładowanie…
Reference in New Issue