Fix cppcheck warnings in paragon.c

pull/155/head
Michael Black 2019-12-08 22:54:55 -06:00
rodzic 398f20b7e1
commit 4f55f69d23
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -268,7 +268,7 @@ int tt585_get_vfo(RIG *rig, vfo_t *vfo)
return ret;
}
*vfo = priv->status_data[9] & 0x08 ? RIG_VFO_A : RIG_VFO_B;
*vfo = (priv->status_data[9] & 0x08) ? RIG_VFO_A : RIG_VFO_B;
return RIG_OK;
}
@ -332,7 +332,7 @@ int tt585_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *txvfo)
return ret;
}
*split = priv->status_data[9] & 0x02 ? RIG_SPLIT_ON : RIG_SPLIT_OFF;
*split = (priv->status_data[9] & 0x02) ? RIG_SPLIT_ON : RIG_SPLIT_OFF;
*txvfo = RIG_VFO_B;
return RIG_OK;