Fix get_ant in rig.swg

pull/224/head
Michael Black W9MDB 2020-03-04 08:30:11 -06:00
rodzic 5897514759
commit fb1d28ee3e
1 zmienionych plików z 6 dodań i 3 usunięć
bindings

Wyświetl plik

@ -436,7 +436,7 @@ typedef channel_t * const_channel_t_p;
METHOD1VGET(get_rit, shortfreq_t)
METHOD1VGET(get_xit, shortfreq_t)
METHOD1VGET(get_ts, shortfreq_t)
extern void get_ant(value_t * OUTPUT, ant_t * OUTPUT, ant_t ant, vfo_t vfo = RIG_VFO_CURR);
extern void get_ant(ant_t *ant_rx, ant_t *ant_tx, ant_t *ant_curr, value_t * OUTPUT, ant_t ant, vfo_t vfo = RIG_VFO_CURR);
METHOD1VGET(get_mem, int)
METHOD1GET(get_powerstat, powerstat_t)
METHOD1GET(get_trn, int)
@ -558,9 +558,12 @@ void Rig_get_split_mode(Rig *self, rmode_t *mode, pbwidth_t *width, vfo_t vfo)
self->error_status = rig_get_split_mode(self->rig, vfo, mode, width);
}
void Rig_get_ant(Rig *self, value_t *option, ant_t *ant_curr, ant_t ant, vfo_t vfo)
/*
* these ones return 4 values
*/
void Rig_get_ant(Rig *self, ant_t *ant_rx, ant_t *ant_tx, ant_t *ant_curr, value_t *option, ant_t ant, vfo_t vfo)
{
self->error_status = rig_get_ant(self->rig, vfo, ant, ant_curr, option);
self->error_status = rig_get_ant(self->rig, vfo, ant, option, ant_curr, ant_tx, ant_rx);
}
struct channel *Rig_get_chan_all(Rig *self)