mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 10:27:18 +00:00
Astyle files
This commit is contained in:
parent
ce1932fb9a
commit
f81c20eb37
@ -132,7 +132,7 @@ const struct rig_caps ft736_caps =
|
||||
.max_rit = Hz(0),
|
||||
.max_xit = 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,
|
||||
.bank_qty = 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;
|
||||
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)
|
||||
{
|
||||
|
@ -382,7 +382,7 @@ void frameParse(int fd, unsigned char *frame, int len)
|
||||
|
||||
frame[11] = 0xfd;
|
||||
unsigned char frame2[11];
|
||||
|
||||
|
||||
frame2[0] = 0xfe;
|
||||
frame2[1] = 0xfe;
|
||||
frame2[2] = 0x00; // send transceive frame
|
||||
|
@ -274,13 +274,13 @@ int main(int argc, char *argv[])
|
||||
n = write(fd, buf, strlen(buf));
|
||||
continue;
|
||||
}
|
||||
else if (strncmp(buf,"ZZFL;", 5)==0)
|
||||
else if (strncmp(buf, "ZZFL;", 5) == 0)
|
||||
{
|
||||
SNPRINTF(buf, sizeof(buf), "ZZFL+%04d;", 100);
|
||||
n = write(fd, buf, strlen(buf));
|
||||
continue;
|
||||
}
|
||||
else if (strncmp(buf,"ZZFH;", 5)==0)
|
||||
else if (strncmp(buf, "ZZFH;", 5) == 0)
|
||||
{
|
||||
SNPRINTF(buf, sizeof(buf), "ZZFH+%04d;", 3500);
|
||||
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);
|
||||
return -RIG_ENAVAIL;
|
||||
}
|
||||
|
||||
ELAPSED1;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
ELAPSED2;
|
||||
|
||||
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, " "); }
|
||||
|
||||
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)
|
||||
{
|
||||
|
@ -1737,9 +1737,12 @@ readline_repeat:
|
||||
|
||||
if (retcode == RIG_OK) { rig_powerstat = stat; }
|
||||
|
||||
if (rig_powerstat != RIG_POWER_ON) { rig_debug(RIG_DEBUG_ERR,
|
||||
"%s: rig_powerstat is not on = %d\n", __func__,
|
||||
rig_powerstat); }
|
||||
if (rig_powerstat != RIG_POWER_ON)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_ERR,
|
||||
"%s: rig_powerstat is not on = %d\n", __func__,
|
||||
rig_powerstat);
|
||||
}
|
||||
}
|
||||
|
||||
// Allow only certain commands when the rig is powered off
|
||||
|
Loading…
Reference in New Issue
Block a user