kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warnings in ar7030p.c
rodzic
243aa58b47
commit
cef4178825
|
@ -600,15 +600,14 @@ static int ar7030p_set_mode(RIG *rig, vfo_t vfo, rmode_t mode,
|
||||||
pbwidth_t width)
|
pbwidth_t width)
|
||||||
{
|
{
|
||||||
int rc = RIG_OK;
|
int rc = RIG_OK;
|
||||||
unsigned char ar_mode;
|
unsigned char ar_filter;
|
||||||
unsigned char ar_filter = (unsigned char) FILTER_3;
|
|
||||||
|
|
||||||
rc = lockRx(rig, LOCK_1);
|
rc = lockRx(rig, LOCK_1);
|
||||||
|
|
||||||
if (RIG_OK == rc)
|
if (RIG_OK == rc)
|
||||||
{
|
{
|
||||||
/* TODO - deal with selected VFO */
|
/* TODO - deal with selected VFO */
|
||||||
ar_mode = modeToNative(mode);
|
unsigned char ar_mode = modeToNative(mode);
|
||||||
|
|
||||||
rc = writeByte(rig, WORKING, MODE, ar_mode);
|
rc = writeByte(rig, WORKING, MODE, ar_mode);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue