From 71e8a26ab3fa5173b9180e4315a16ba347e0e31e Mon Sep 17 00:00:00 2001 From: Tom Early Date: Wed, 22 Dec 2021 11:10:42 -0700 Subject: [PATCH] more checking --- DV3003.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DV3003.cpp b/DV3003.cpp index 50cc1e5..2db45c7 100644 --- a/DV3003.cpp +++ b/DV3003.cpp @@ -383,12 +383,12 @@ void CDV3003::FeedDevice() in_mux.lock(); auto packet = inq.pop(); in_mux.unlock(); - #ifdef DEBUG - if (packet->IsLast()) - Controller.Dump(packet, "FeedDevice got a packet from inq:"); - #endif if (packet) { + #ifdef DEBUG + if (packet->IsLast()) + Controller.Dump(packet, "FeedDevice got a packet from inq:"); + #endif bool device_is_ready = false; const bool needs_audio = (Encoding::dstar==type) ? packet->DStarIsSet() : packet->DMRIsSet();