kopia lustrzana https://github.com/Hamlib/Hamlib
fixed reading the rig's return value in newcat_get_tx_vfo
rodzic
b04c910d53
commit
42de040bcb
|
@ -3526,7 +3526,6 @@ int newcat_set_tx_vfo(RIG * rig, vfo_t tx_vfo) {
|
||||||
int newcat_get_tx_vfo(RIG * rig, vfo_t * tx_vfo) {
|
int newcat_get_tx_vfo(RIG * rig, vfo_t * tx_vfo) {
|
||||||
struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv;
|
struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv;
|
||||||
int err;
|
int err;
|
||||||
char c;
|
|
||||||
vfo_t vfo_mode;
|
vfo_t vfo_mode;
|
||||||
char const * command = "FT";
|
char const * command = "FT";
|
||||||
|
|
||||||
|
@ -3543,8 +3542,7 @@ int newcat_get_tx_vfo(RIG * rig, vfo_t * tx_vfo) {
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
c = priv->ret_data[strlen (priv->cmd_str)];
|
switch (priv->ret_data[2]) {
|
||||||
switch (c) {
|
|
||||||
case '0':
|
case '0':
|
||||||
*tx_vfo = RIG_VFO_A;
|
*tx_vfo = RIG_VFO_A;
|
||||||
break;
|
break;
|
||||||
|
|
Ładowanie…
Reference in New Issue