Fix rig_set_vfo_opt in rig.swg and add new METHOD1SET

https://github.com/Hamlib/Hamlib/issues/930
pull/943/head
Mike Black W9MDB 2022-01-18 17:29:21 -06:00
rodzic 09c1d74a82
commit 28174de21a
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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))