Set DMR src id to default if no text frame received from USRP

This commit is contained in:
Doug McLain 2021-04-10 16:42:00 -04:00
parent 50cad357f5
commit a4aaabaf5c
1 changed files with 2 additions and 1 deletions

View File

@ -302,7 +302,8 @@ int CUSRP2DMR::run()
m_usrpFrames++;
}
else if( (m_usrpFrame[20] == USRP_TYPE_VOICE) && (m_usrpFrame[15] == USRP_KEYUP_TRUE) ){
if(!m_usrpFrames){
if(!m_usrpFrames){
m_dmrSrc = m_defsrcid;
m_conv.putUSRPHeader();
LogMessage("USRP voice received as first frame");
}