From 1b0160b18ceedd29c646f4d0c05d39b9cef62d91 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Fri, 12 Feb 2021 12:24:45 +0000 Subject: [PATCH] Update udphandler.cpp --- udphandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udphandler.cpp b/udphandler.cpp index 267df44..a4ccb05 100644 --- a/udphandler.cpp +++ b/udphandler.cpp @@ -632,7 +632,7 @@ void udpAudio::sendTxAudio(QByteArray audio) 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; int counter = 0; - if (((txCodec == 0x01 || txCodec == 0x02) && audio.length() != 960) || ((txCodec == 0x04 && audio.length() != 1920))) { + if (((txCodec == 0x02) && audio.length() != 960) || ((txCodec == 0x01 || txCodec == 0x04 && audio.length() != 1920))) { qDebug() << "Unsupported TX audio length :" << audio.length() << " With codec: " << txCodec; } while (counter < audio.length())