kopia lustrzana https://github.com/Hamlib/Hamlib
Fix vfonum warning in tmd710.c
rodzic
a8b6ceebb5
commit
51dab90c74
|
@ -1579,7 +1579,7 @@ int tmd710_get_mem(RIG *rig, vfo_t vfo, int *ch)
|
|||
|
||||
int tmd710_set_mem(RIG *rig, vfo_t vfo, int ch)
|
||||
{
|
||||
int retval, vfonum;
|
||||
int retval, vfonum = TMD710_BAND_A;
|
||||
char cmd[16];
|
||||
char membuf[16];
|
||||
|
||||
|
@ -1589,7 +1589,10 @@ int tmd710_set_mem(RIG *rig, vfo_t vfo, int ch)
|
|||
return -RIG_EINVAL;
|
||||
}
|
||||
|
||||
if (RIG_VFO_CURR == vfo || RIG_VFO_VFO == vfo) {
|
||||
if (RIG_VFO_B == vfo) {
|
||||
vfonum = TMD710_BAND_B;
|
||||
}
|
||||
else if (RIG_VFO_CURR == vfo || RIG_VFO_VFO == vfo) {
|
||||
retval = tmd710_get_vfo_num(rig, &vfonum, NULL);
|
||||
if (retval != RIG_OK) {
|
||||
return retval;
|
||||
|
|
Ładowanie…
Reference in New Issue