astyle files prepping for 4.1 release

pull/518/head
Michael Black W9MDB 2021-01-22 10:41:30 -06:00
rodzic e1c21605f4
commit e7b6e61ed0
7 zmienionych plików z 32 dodań i 20 usunięć

Wyświetl plik

@ -551,7 +551,8 @@ static int flrig_transaction(RIG *rig, char *cmd, char *cmd_arg, char *value,
xml_parse(xml, value, value_len); xml_parse(xml, value, value_len);
} }
} }
while (((value && strlen(value) == 0) || (strlen(xml)==0)) && retry--); // we'll do retries if needed while (((value && strlen(value) == 0) || (strlen(xml) == 0))
&& retry--); // we'll do retries if needed
if (value && strlen(value) == 0) { return RIG_EPROTO; } if (value && strlen(value) == 0) { return RIG_EPROTO; }

Wyświetl plik

@ -3112,11 +3112,13 @@ int icom_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
else else
{ {
float scale = 100; float scale = 100;
if (rig->caps->rig_model == RIG_MODEL_IC705 if (rig->caps->rig_model == RIG_MODEL_IC705
|| rig->caps->rig_model == RIG_MODEL_IC703) || rig->caps->rig_model == RIG_MODEL_IC703)
{ {
scale = 10; scale = 10;
} }
val->f = val->f =
rig_raw2val_float(icom_val, &rig->caps->rfpower_meter_cal) * scale; rig_raw2val_float(icom_val, &rig->caps->rfpower_meter_cal) * scale;
} }

Wyświetl plik

@ -376,7 +376,8 @@ int prm80_get_channel(RIG *rig, vfo_t vfo, channel_t *chan, int read_only)
if (statebuf_len < 20) if (statebuf_len < 20)
{ {
rig_debug(RIG_DEBUG_ERR, "%s: statebuf_len < 20, statebuf='%s'\n", __func__, statebuf); rig_debug(RIG_DEBUG_ERR, "%s: statebuf_len < 20, statebuf='%s'\n", __func__,
statebuf);
RETURNFUNC(-RIG_EPROTO); RETURNFUNC(-RIG_EPROTO);
} }
@ -409,7 +410,8 @@ int prm80_get_channel(RIG *rig, vfo_t vfo, channel_t *chan, int read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, rig_debug(RIG_DEBUG_ERR,
"%s: please contact hamlib mailing list to implement this, rxfreq=%.0f, txfreq=%.0f\n", __func__, chan->freq, chan->tx_freq); "%s: please contact hamlib mailing list to implement this, rxfreq=%.0f, txfreq=%.0f\n",
__func__, chan->freq, chan->tx_freq);
rig_debug(RIG_DEBUG_ERR, rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__); "%s: need to know if rig updates when channel read or not\n", __func__);
//return -RIG_ENIMPL; //return -RIG_ENIMPL;

Wyświetl plik

@ -774,11 +774,14 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
target_vfo = 'A' == c ? '0' : '1'; target_vfo = 'A' == c ? '0' : '1';
if(rig->state.cache.ptt == RIG_PTT_ON) // we have a few rigs that can't set TX VFO while PTT_ON if (rig->state.cache.ptt ==
{ // should be true whether we're on VFOA or VFOB but only restricting VFOB right now RIG_PTT_ON) // we have a few rigs that can't set TX VFO while PTT_ON
{
// should be true whether we're on VFOA or VFOB but only restricting VFOB right now
// we return RIG_OK as we dont' want // we return RIG_OK as we dont' want
if (is_ftdx3000 && target_vfo == 'B') return RIG_OK; if (is_ftdx3000 && target_vfo == 'B') { return RIG_OK; }
if (is_ftdx5000 && target_vfo == 'B') return RIG_OK;
if (is_ftdx5000 && target_vfo == 'B') { return RIG_OK; }
} }
if (RIG_MODEL_FT450 == caps->rig_model) if (RIG_MODEL_FT450 == caps->rig_model)

Wyświetl plik

@ -20,8 +20,10 @@ int main()
#else #else
int expected = 13280; // should be most 64-bit compilers int expected = 13280; // should be most 64-bit compilers
#endif #endif
if (offset == 9384) expected = 9384; // 32-bit Intel
if (offset == 10144) expected = 10144; // 32-bit Arm if (offset == 9384) { expected = 9384; } // 32-bit Intel
if (offset == 10144) { expected = 10144; } // 32-bit Arm
if (offset != expected) if (offset != expected)
{ {
@ -41,8 +43,10 @@ int main()
#else #else
expected = 13696; expected = 13696;
#endif #endif
if (offset == 9676) expected = 9676; // 32-bit Intel
if (offset == 10448) expected = 10448; // 32-bit Arm if (offset == 9676) { expected = 9676; } // 32-bit Intel
if (offset == 10448) { expected = 10448; } // 32-bit Arm
if (offset != expected) if (offset != expected)
{ {