kopia lustrzana https://github.com/Hamlib/Hamlib
Fix c90 warnings on ic746.c
rodzic
3a3d66d52d
commit
2fce78ac87
|
@ -971,6 +971,9 @@ int ic746pro_get_channel(RIG *rig, channel_t *chan)
|
||||||
/* do this only if not a blank channel */
|
/* do this only if not a blank channel */
|
||||||
if (chan_len != 1)
|
if (chan_len != 1)
|
||||||
{
|
{
|
||||||
|
int band;
|
||||||
|
int sc;
|
||||||
|
unsigned char databuf[32];
|
||||||
|
|
||||||
membuf = (mem_buf_t *)(chanbuf + 4);
|
membuf = (mem_buf_t *)(chanbuf + 4);
|
||||||
|
|
||||||
|
@ -991,14 +994,12 @@ int ic746pro_get_channel(RIG *rig, channel_t *chan)
|
||||||
|
|
||||||
/* offset is default for the band & is not stored in channel memory.
|
/* offset is default for the band & is not stored in channel memory.
|
||||||
The following retrieves the system default for the band */
|
The following retrieves the system default for the band */
|
||||||
int band = (int) chan->freq / 1000000; /* hf, 2m or 6 m */
|
band = (int) chan->freq / 1000000; /* hf, 2m or 6 m */
|
||||||
|
|
||||||
int sc;
|
|
||||||
if (band < 50) { sc = S_MEM_HF_DUP_OFST; }
|
if (band < 50) { sc = S_MEM_HF_DUP_OFST; }
|
||||||
else if (band < 108) { sc = S_MEM_6M_DUP_OFST; }
|
else if (band < 108) { sc = S_MEM_6M_DUP_OFST; }
|
||||||
else { sc = S_MEM_2M_DUP_OFST; }
|
else { sc = S_MEM_2M_DUP_OFST; }
|
||||||
|
|
||||||
unsigned char databuf[32];
|
|
||||||
retval = icom_transaction(rig, C_CTL_MEM, sc,
|
retval = icom_transaction(rig, C_CTL_MEM, sc,
|
||||||
NULL, 0, databuf, &data_len);
|
NULL, 0, databuf, &data_len);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue