kopia lustrzana https://github.com/Hamlib/Hamlib
Remove set but unused variable errors in m2.
rodzic
d691a0d9dc
commit
0605681c95
|
@ -86,16 +86,22 @@ static int rc2800_parse (char *s, char *device, float *value)
|
||||||
{
|
{
|
||||||
msgtype=1;
|
msgtype=1;
|
||||||
i = sscanf(s+6, "%d", &errcode);
|
i = sscanf(s+6, "%d", &errcode);
|
||||||
|
if (i == EOF)
|
||||||
|
return -RIG_EINVAL;
|
||||||
}
|
}
|
||||||
else if (!strncmp(s+2, "P=", 2))
|
else if (!strncmp(s+2, "P=", 2))
|
||||||
{
|
{
|
||||||
msgtype=2;
|
msgtype=2;
|
||||||
i = num_sscanf(s+5, "%f", value);
|
i = num_sscanf(s+5, "%f", value);
|
||||||
|
if (i == EOF)
|
||||||
|
return -RIG_EINVAL;
|
||||||
}
|
}
|
||||||
else if (s[1] == '=')
|
else if (s[1] == '=')
|
||||||
{
|
{
|
||||||
msgtype=2;
|
msgtype=2;
|
||||||
i = num_sscanf(s+2, "%f", value);
|
i = num_sscanf(s+2, "%f", value);
|
||||||
|
if (i == EOF)
|
||||||
|
return -RIG_EINVAL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue