kopia lustrzana https://github.com/Hamlib/Hamlib
Remove set but unused variable errors in racal.
rodzic
4f992f0ce1
commit
61f02e3e01
|
@ -281,6 +281,8 @@ int ra37xx_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
int freq_len;
|
||||
|
||||
freq_len = sprintf(freqbuf, "F%ld", (unsigned long)freq);
|
||||
if (freq_len < 0)
|
||||
return -RIG_ETRUNC;
|
||||
|
||||
return ra37xx_transaction (rig, freqbuf, NULL, NULL);
|
||||
}
|
||||
|
@ -338,6 +340,8 @@ int ra37xx_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
|||
sprintf(buf, "M%d", ra_mode);
|
||||
#endif
|
||||
|
||||
rig_debug(RIG_DEBUG_TRACE, "%s: widthtype = %i, widthnum = %i\n", __func__, widthtype, widthnum);
|
||||
|
||||
return ra37xx_transaction (rig, buf, NULL, NULL);
|
||||
}
|
||||
|
||||
|
|
|
@ -217,6 +217,8 @@ int racal_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
int freq_len;
|
||||
|
||||
freq_len = sprintf(freqbuf, "F%0g", (double)(freq/MHz(1)));
|
||||
if (freq_len < 0)
|
||||
return -RIG_ETRUNC;
|
||||
|
||||
return racal_transaction (rig, freqbuf, NULL, NULL);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue