fixed FeedDevice bug

main
Tom Early 4 years ago
parent eff89354e3
commit 69228ee3fe

@ -413,6 +413,11 @@ void CDV3003::FeedDevice()
voc_mux[current_vocoder].unlock();
if (needs_audio)
{
SendData(current_vocoder, (Encoding::dstar==type) ? packet->GetDStarData() : packet->GetDMRData());
ch_depth++;
}
else
{
SendAudio(current_vocoder, packet->GetAudio());
sp_depth++;
@ -420,11 +425,6 @@ void CDV3003::FeedDevice()
std::cout << "Sent audio to " << devicepath << std::endl;
#endif
}
else
{
SendData(current_vocoder, (Encoding::dstar==type) ? packet->GetDStarData() : packet->GetDMRData());
ch_depth++;
}
if(++current_vocoder > 2)
current_vocoder = 0;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.