diff --git a/bindings/python/test_rig.py b/bindings/python/test_rig.py index 80f37acd2..7547cd838 100755 --- a/bindings/python/test_rig.py +++ b/bindings/python/test_rig.py @@ -159,7 +159,8 @@ class TestClass: assert rig.scan(0, 0) is None assert rig.scan(0, 0, 0) is None assert rig.send_dtmf(0, "") is None - assert rig.send_morse(0, "") is None + assert rig.send_morse("73") is None + assert rig.send_morse("73", Hamlib.RIG_VFO_CURR) is None # FIXME should use a RIG_ANT_* constant but it isn't available in the bindings RIG_ANT_1 = 1<<0 option = Hamlib.value_t() diff --git a/bindings/python/test_startup.py b/bindings/python/test_startup.py index e38cc355d..4620ce4dc 100755 --- a/bindings/python/test_startup.py +++ b/bindings/python/test_startup.py @@ -83,7 +83,7 @@ class TestClass: #(freq, width, mode, split) = my_rig.get_vfo_info(Hamlib.RIG_VFO_A,freq,width,mode,split) #print("Rig vfo_info:\t\tfreq=%s, mode=%s, width=%s, split=%s" % (freq, mode, width, split)) - assert my_rig.send_morse(Hamlib.RIG_VFO_A, "73") is None + assert my_rig.send_morse("73", Hamlib.RIG_VFO_A) is None assert my_rig.close() is None # Some static functions diff --git a/bindings/rig.swg b/bindings/rig.swg index f2ee04e53..096b75b0b 100644 --- a/bindings/rig.swg +++ b/bindings/rig.swg @@ -386,7 +386,7 @@ typedef channel_t * const_channel_t_p; METHOD3(set_bank, int) METHOD3(set_mem, int) METHOD3(send_dtmf, const_char_string) - METHOD3(send_morse, const_char_string) + METHOD1(send_morse, const_char_string) METHOD3(vfo_op, vfo_op_t) METHOD2(scan, scan_t, int) METHODSIMPLESET(level, int, i, RIG_LEVEL_IS_FLOAT(stg))