Skip to content

Commit

Permalink
Fix rig_set_vfo_opt in rig.swg and add new METHOD1SET
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed Jan 18, 2022
1 parent 09c1d74 commit 28174de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bindings/rig.swg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 28174de

Please sign in to comment.