From ec9882b18c9e12a60bb0face34ea4bcc072c2dfb Mon Sep 17 00:00:00 2001 From: marshmellow42 Date: Sun, 22 Feb 2015 21:11:25 -0500 Subject: [PATCH] PSKDemod Bug Fix --- client/cmddata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/cmddata.c b/client/cmddata.c index 2ed5166f..15f4d3eb 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -1492,9 +1492,9 @@ int PSKDemod(const char *Cmd, bool verbose) size_t BitLen = getFromGraphBuf(BitStream); if (BitLen==0) return -1; uint8_t carrier=countPSK_FC(BitStream, BitLen); - if (carrier!=2 && carrier!=4 || carrier!=8){ + if (carrier!=2 && carrier!=4 && carrier!=8){ //invalid carrier - return -1 + return -1; } int errCnt=0; errCnt = pskRawDemod(BitStream, &BitLen, &clk, &invert); -- 2.39.5