From 32bae50806912b32e76cabaca6de4a7a40fa6042 Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Thu, 31 Jan 2019 10:24:55 +0000 Subject: [PATCH] Update YSF2P25.cpp Helps to give voice feedback on connect. Sending the PTT to TG10 (Parrot) and then TG9999 (Disconnect) forces the voice feedback on connect. If there is already a link request in the WiresX connect, PTT to that TG, again makes the connection happen and provides voice feedback. --- YSF2P25/YSF2P25.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/YSF2P25/YSF2P25.cpp b/YSF2P25/YSF2P25.cpp index a521974..a46be6c 100644 --- a/YSF2P25/YSF2P25.cpp +++ b/YSF2P25/YSF2P25.cpp @@ -388,6 +388,12 @@ int CYSF2P25::run() break; case WXS_DX: + if (!m_wiresX->getDstID()) { + sendP25PTT(m_srcid, 10U); + sendP25PTT(m_srcid, 9999U); + } else { + sendP25PTT(m_srcid, m_wiresX->getDstID()); + } break; case WXS_DISCONNECT: