From 289651451778a70c2fd669f896e881d17fbf65e5 Mon Sep 17 00:00:00 2001 From: dj2ls Date: Wed, 5 Jan 2022 12:01:32 +0100 Subject: [PATCH] fixed hamlib ptt thanks @frspin, I tested it with hamlib 4.3 and it seems to be working --- tnc/rig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tnc/rig.py b/tnc/rig.py index e1bdb20f..5afe36fd 100644 --- a/tnc/rig.py +++ b/tnc/rig.py @@ -194,9 +194,9 @@ class radio: def set_ptt(self, state): if state: - self.my_rig.set_ptt(self.hamlib_ptt_type, 1) + self.my_rig.set_ptt(Hamlib.RIG_VFO_CURR, 1) else: - self.my_rig.set_ptt(self.hamlib_ptt_type, 0) + self.my_rig.set_ptt(Hamlib.RIG_VFO_CURR, 0) return state def close_rig(self):