kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck sylte
rodzic
82c169527d
commit
10f88807e6
|
@ -245,10 +245,9 @@ static int sdrsharp_transaction(RIG *rig, char *cmd, char *value,
|
|||
if (value)
|
||||
{
|
||||
read_transaction(rig, xml, sizeof(xml)); // this might time out -- that's OK
|
||||
strncpy(value, xml, value_len);
|
||||
}
|
||||
|
||||
if (value) { strncpy(value, xml, value_len); }
|
||||
|
||||
}
|
||||
while (((value && strlen(value) == 0))
|
||||
&& retry--); // we'll do retries if needed
|
||||
|
@ -486,10 +485,12 @@ static int sdrsharp_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
RETURNFUNC2(-RIG_EINVAL);
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (vfo == RIG_VFO_CURR)
|
||||
{
|
||||
vfo = rig->state.current_vfo;
|
||||
}
|
||||
#endif
|
||||
|
||||
SNPRINTF(cmd, sizeof(cmd), "F %.0lf\n", freq);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue