kopia lustrzana https://github.com/Hamlib/Hamlib
Fix rig_set_vfo_opt in rig.swg and add new METHOD1SET
https://github.com/Hamlib/Hamlib/issues/930pull/943/head
rodzic
09c1d74a82
commit
28174de21a
|
@ -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))
|
||||
|
|
Ładowanie…
Reference in New Issue