From 3bbc7e62f8b58b1c99f286084b728f2b77a3791e Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Thu, 22 Sep 2022 15:29:59 +0200 Subject: [PATCH] Ensure that next_state_.ptt() is initialized. Patch from Mike W9MDB. --- Transceiver/PollingTransceiver.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Transceiver/PollingTransceiver.cpp b/Transceiver/PollingTransceiver.cpp index 5ddbd66a7..95845283d 100644 --- a/Transceiver/PollingTransceiver.cpp +++ b/Transceiver/PollingTransceiver.cpp @@ -117,6 +117,10 @@ void PollingTransceiver::do_post_ptt (bool p) retries_ = polls_to_stabilize; //retries_ = 0; // fast feedback on PTT } + else + { + next_state_.ptt(p); // ensure this is initialized + } } bool PollingTransceiver::do_pre_update ()