diff --git a/bindings/rig.swg b/bindings/rig.swg index 3ecb92e9a..0731b1275 100644 --- a/bindings/rig.swg +++ b/bindings/rig.swg @@ -79,6 +79,8 @@ typedef channel_t * const_channel_t_p; */ #define METHOD1GET(f, t1) t1 f (void) \ { t1 _##t1; self->error_status = rig_##f(self->rig, &_##t1); return _##t1; } +#define METHOD1SET(f, t1) t1 f (void) \ + { t1 _##t1; self->error_status = rig_##f(self->rig, _##t1); return _##t1; } /* * declare wrapper method with one output argument besides RIG* and vfo @@ -363,7 +365,7 @@ typedef channel_t * const_channel_t_p; METHOD3(send_dtmf, const_char_string) METHOD3(send_morse, const_char_string) METHOD3(vfo_op, vfo_op_t) - METHOD3(set_vfo_opt, int) + METHOD1SET(set_vfo_opt, int) METHOD2(scan, scan_t, int) METHODSIMPLESET(level, int, i, RIG_LEVEL_IS_FLOAT(stg)) METHODSIMPLESET(level, float, f, !RIG_LEVEL_IS_FLOAT(stg))