From 04ff3dee973c334564f4008269bfb787405d8444 Mon Sep 17 00:00:00 2001 From: Michael Black Date: Fri, 7 Feb 2020 12:29:47 -0600 Subject: [PATCH 1/2] Fix get_ant for bindings --- bindings/rig.swg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/rig.swg b/bindings/rig.swg index 134bc3248..305598247 100644 --- a/bindings/rig.swg +++ b/bindings/rig.swg @@ -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, vfo_t vfo = RIG_VFO_CURR); + extern void get_ant(value_t * OUTPUT, ant_t * OUTPUT, ant_t ant, vfo_t vfo = RIG_VFO_CURR); METHOD1VGET(get_mem, int) METHOD1GET(get_powerstat, powerstat_t) METHOD1GET(get_trn, int) @@ -557,9 +557,9 @@ 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, vfo_t vfo) +void Rig_get_ant(Rig *self, value_t *option, ant_t *ant_curr, ant_t ant, vfo_t vfo) { - self->error_status = rig_get_ant(self->rig, vfo, ant, option); + self->error_status = rig_get_ant(self->rig, vfo, ant, ant_curr, option); } struct channel *Rig_get_chan_all(Rig *self) From da3059fb070530c3951ef88c2ac8b3cc9748ada3 Mon Sep 17 00:00:00 2001 From: Michael Black Date: Fri, 7 Feb 2020 23:03:29 -0600 Subject: [PATCH 2/2] Add get_dcd to swg bindings --- bindings/rig.swg | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/rig.swg b/bindings/rig.swg index 305598247..ba3db47d7 100644 --- a/bindings/rig.swg +++ b/bindings/rig.swg @@ -441,6 +441,7 @@ typedef channel_t * const_channel_t_p; METHOD1GET(get_powerstat, powerstat_t) METHOD1GET(get_trn, int) + METHOD1VGET(get_dcd, dcd_t) //METHOD2GET(get_ext_parm, token_t, value_t)