From 0b4d87d6a398adacd3914dde88942ea4b280ed6d Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Mon, 13 Feb 2023 22:41:09 +0100 Subject: [PATCH] adjustment to is writing --- tnc/data_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tnc/data_handler.py b/tnc/data_handler.py index 58402d33..9801d4c0 100644 --- a/tnc/data_handler.py +++ b/tnc/data_handler.py @@ -2820,6 +2820,7 @@ class DATA: static.FREQ_OFFSET, static.HAMLIB_FREQUENCY, ) + def received_is_writing(self, data_in: bytes) -> None: """ Called when we receive a IS WRITING frame @@ -3274,7 +3275,7 @@ class DATA: # send burst only if channel not busy - but without waiting # otherwise burst will be dropped - if not static.CHANNEL_BUSY: + if not static.CHANNEL_BUSY and not static.TRANSMITTING: self.enqueue_frame_for_tx( frame_to_tx=[fec_frame], c2_mode=codec2.FREEDV_MODE["datac0"].value )