kopia lustrzana https://github.com/Hamlib/Hamlib
Add another priv->has_ps check to kenwood.c
rodzic
8c4c906efe
commit
7db23d549f
|
@ -4843,9 +4843,15 @@ int kenwood_get_powerstat(RIG *rig, powerstat_t *status)
|
||||||
{
|
{
|
||||||
char pwrbuf[6];
|
char pwrbuf[6];
|
||||||
int retval;
|
int retval;
|
||||||
|
struct kenwood_priv_data *priv = rig->state.priv;
|
||||||
|
|
||||||
ENTERFUNC;
|
ENTERFUNC;
|
||||||
|
|
||||||
|
if (!priv->has_ps)
|
||||||
|
{
|
||||||
|
RETURNFUNC(RIG_OK); // fake the OK return for these rigs
|
||||||
|
}
|
||||||
|
|
||||||
if (!status)
|
if (!status)
|
||||||
{
|
{
|
||||||
RETURNFUNC(-RIG_EINVAL);
|
RETURNFUNC(-RIG_EINVAL);
|
||||||
|
|
Ładowanie…
Reference in New Issue