kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warnings in tt550.c
rodzic
5e2f45f987
commit
fac207d37b
|
@ -232,7 +232,7 @@ tt550_tuning_factor_calc(RIG *rig, int tx)
|
||||||
int TBfo = 0; // temporary BFO
|
int TBfo = 0; // temporary BFO
|
||||||
int IBfo = 1500; // Intermediate BFO Freq
|
int IBfo = 1500; // Intermediate BFO Freq
|
||||||
int FilterBw; // Filter Bandwidth determined from table
|
int FilterBw; // Filter Bandwidth determined from table
|
||||||
int Mode, bwBFO, PbtAdj, RitAdj, XitAdj;
|
int Mode, PbtAdj, RitAdj, XitAdj;
|
||||||
|
|
||||||
priv = (struct tt550_priv_data *) rig->state.priv;
|
priv = (struct tt550_priv_data *) rig->state.priv;
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ tt550_tuning_factor_calc(RIG *rig, int tx)
|
||||||
|
|
||||||
if (tx)
|
if (tx)
|
||||||
{
|
{
|
||||||
bwBFO = (FilterBw / 2) + 200;
|
int bwBFO = (FilterBw / 2) + 200;
|
||||||
|
|
||||||
IBfo = (bwBFO > IBfo) ? bwBFO : IBfo;
|
IBfo = (bwBFO > IBfo) ? bwBFO : IBfo;
|
||||||
|
|
||||||
|
@ -1706,7 +1706,6 @@ tt550_decode_event(RIG *rig)
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
unsigned char buf[MAXFRAMELEN];
|
unsigned char buf[MAXFRAMELEN];
|
||||||
int data_len;
|
int data_len;
|
||||||
short movement = 0;
|
|
||||||
// char key;
|
// char key;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1744,7 +1743,7 @@ tt550_decode_event(RIG *rig)
|
||||||
case '!':
|
case '!':
|
||||||
if (rig->callbacks.freq_event)
|
if (rig->callbacks.freq_event)
|
||||||
{
|
{
|
||||||
movement = buf[1] << 8;
|
int movement = buf[1] << 8;
|
||||||
movement = movement | buf[2];
|
movement = movement | buf[2];
|
||||||
// key = buf[3];
|
// key = buf[3];
|
||||||
rig_debug(RIG_DEBUG_VERBOSE,
|
rig_debug(RIG_DEBUG_VERBOSE,
|
||||||
|
|
Ładowanie…
Reference in New Issue