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.
This commit is contained in:
Andy Taylor 2019-01-31 10:24:55 +00:00 committed by GitHub
parent 4dc661827e
commit 32bae50806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -388,6 +388,12 @@ int CYSF2P25::run()
break; break;
case WXS_DX: case WXS_DX:
if (!m_wiresX->getDstID()) {
sendP25PTT(m_srcid, 10U);
sendP25PTT(m_srcid, 9999U);
} else {
sendP25PTT(m_srcid, m_wiresX->getDstID());
}
break; break;
case WXS_DISCONNECT: case WXS_DISCONNECT: