kopia lustrzana https://github.com/Hamlib/Hamlib
Astyle files
rodzic
ce1932fb9a
commit
f81c20eb37
|
@ -132,7 +132,7 @@ const struct rig_caps ft736_caps =
|
||||||
.max_rit = Hz(0),
|
.max_rit = Hz(0),
|
||||||
.max_xit = Hz(0),
|
.max_xit = Hz(0),
|
||||||
.max_ifshift = Hz(0),
|
.max_ifshift = Hz(0),
|
||||||
.targetable_vfo = RIG_TARGETABLE_FREQ|RIG_TARGETABLE_MODE,
|
.targetable_vfo = RIG_TARGETABLE_FREQ | RIG_TARGETABLE_MODE,
|
||||||
.transceive = RIG_TRN_OFF,
|
.transceive = RIG_TRN_OFF,
|
||||||
.bank_qty = 0,
|
.bank_qty = 0,
|
||||||
.chan_desc_sz = 0,
|
.chan_desc_sz = 0,
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -274,13 +274,13 @@ int main(int argc, char *argv[])
|
||||||
n = write(fd, buf, strlen(buf));
|
n = write(fd, buf, strlen(buf));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (strncmp(buf,"ZZFL;", 5)==0)
|
else if (strncmp(buf, "ZZFL;", 5) == 0)
|
||||||
{
|
{
|
||||||
SNPRINTF(buf, sizeof(buf), "ZZFL+%04d;", 100);
|
SNPRINTF(buf, sizeof(buf), "ZZFL+%04d;", 100);
|
||||||
n = write(fd, buf, strlen(buf));
|
n = write(fd, buf, strlen(buf));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (strncmp(buf,"ZZFH;", 5)==0)
|
else if (strncmp(buf, "ZZFH;", 5) == 0)
|
||||||
{
|
{
|
||||||
SNPRINTF(buf, sizeof(buf), "ZZFH+%04d;", 3500);
|
SNPRINTF(buf, sizeof(buf), "ZZFH+%04d;", 3500);
|
||||||
n = write(fd, buf, strlen(buf));
|
n = write(fd, buf, strlen(buf));
|
||||||
|
|
|
@ -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