kopia lustrzana https://github.com/Hamlib/Hamlib
Astyle files
rodzic
ce1932fb9a
commit
f81c20eb37
|
@ -305,7 +305,7 @@ int ft736_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
||||||
unsigned char md;
|
unsigned char md;
|
||||||
struct ft736_priv_data *priv = (struct ft736_priv_data *)rig->state.priv;
|
struct ft736_priv_data *priv = (struct ft736_priv_data *)rig->state.priv;
|
||||||
|
|
||||||
if (vfo == RIG_VFO_B) return ft736_set_split_mode(rig, vfo, mode, width);
|
if (vfo == RIG_VFO_B) { return ft736_set_split_mode(rig, vfo, mode, width); }
|
||||||
|
|
||||||
if (priv->split == RIG_SPLIT_ON)
|
if (priv->split == RIG_SPLIT_ON)
|
||||||
{
|
{
|
||||||
|
|
|
@ -7421,6 +7421,7 @@ HAMLIB_EXPORT(int) rig_send_raw(RIG *rig, const unsigned char *send,
|
||||||
rig->caps->model_name);
|
rig->caps->model_name);
|
||||||
return -RIG_ENAVAIL;
|
return -RIG_ENAVAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ELAPSED1;
|
ELAPSED1;
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: writing %d bytes\n", __func__, send_len);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: writing %d bytes\n", __func__, send_len);
|
||||||
|
@ -7483,6 +7484,7 @@ HAMLIB_EXPORT(int) rig_send_raw(RIG *rig, const unsigned char *send,
|
||||||
{
|
{
|
||||||
RETURNFUNC(retval);
|
RETURNFUNC(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
ELAPSED2;
|
ELAPSED2;
|
||||||
|
|
||||||
RETURNFUNC(nbytes > 0 ? nbytes : -RIG_EPROTO);
|
RETURNFUNC(nbytes > 0 ? nbytes : -RIG_EPROTO);
|
||||||
|
|
|
@ -919,7 +919,8 @@ int rig_sprintf_agc_levels(RIG *rig, char *str, int lenstr)
|
||||||
{
|
{
|
||||||
if (strlen(str) > 0) { strcat(str, " "); }
|
if (strlen(str) > 0) { strcat(str, " "); }
|
||||||
|
|
||||||
sprintf(tmpbuf, "%d=%s", priv_caps->agc_levels[i].icom_level, rig_stragclevel(priv_caps->agc_levels[i].level));
|
sprintf(tmpbuf, "%d=%s", priv_caps->agc_levels[i].icom_level,
|
||||||
|
rig_stragclevel(priv_caps->agc_levels[i].level));
|
||||||
|
|
||||||
if (strlen(str) + strlen(tmpbuf) < lenstr - 1)
|
if (strlen(str) + strlen(tmpbuf) < lenstr - 1)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1737,9 +1737,12 @@ readline_repeat:
|
||||||
|
|
||||||
if (retcode == RIG_OK) { rig_powerstat = stat; }
|
if (retcode == RIG_OK) { rig_powerstat = stat; }
|
||||||
|
|
||||||
if (rig_powerstat != RIG_POWER_ON) { rig_debug(RIG_DEBUG_ERR,
|
if (rig_powerstat != RIG_POWER_ON)
|
||||||
|
{
|
||||||
|
rig_debug(RIG_DEBUG_ERR,
|
||||||
"%s: rig_powerstat is not on = %d\n", __func__,
|
"%s: rig_powerstat is not on = %d\n", __func__,
|
||||||
rig_powerstat); }
|
rig_powerstat);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Allow only certain commands when the rig is powered off
|
// Allow only certain commands when the rig is powered off
|
||||||
|
|
Ładowanie…
Reference in New Issue