Add another priv->has_ps check to kenwood.c

pull/1119/head
Mike Black W9MDB 2022-09-13 22:15:22 -05:00
rodzic 8c4c906efe
commit 7db23d549f
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -4843,9 +4843,15 @@ int kenwood_get_powerstat(RIG *rig, powerstat_t *status)
{
char pwrbuf[6];
int retval;
struct kenwood_priv_data *priv = rig->state.priv;
ENTERFUNC;
if (!priv->has_ps)
{
RETURNFUNC(RIG_OK); // fake the OK return for these rigs
}
if (!status)
{
RETURNFUNC(-RIG_EINVAL);