From 69228ee3fe12fdf6258ffdbb9ff0d19445ce2af0 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Wed, 22 Dec 2021 08:46:17 -0700 Subject: [PATCH] fixed FeedDevice bug --- DV3003.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DV3003.cpp b/DV3003.cpp index b763948..c4182d8 100644 --- a/DV3003.cpp +++ b/DV3003.cpp @@ -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; }