From 0a9a2ba13654754b2fe9daec55ff1df669de7173 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 22 Jul 2024 04:25:43 +0200 Subject: [PATCH] More Sonar fixes (3) --- ft8/ft8.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ft8/ft8.cpp b/ft8/ft8.cpp index aa9d09b97..7f50613ee 100644 --- a/ft8/ft8.cpp +++ b/ft8/ft8.cpp @@ -1938,7 +1938,7 @@ void FT8::soft_decode(const FFTEngine::ffts_t &c79, float ll174[]) // void FT8::soft_decode_mags(FT8Params& params, const std::vector>& mags_, int nbSymbolBits, float ll174[]) { - if (nbSymbolBits > 16) { + if ((nbSymbolBits > 16) || (nbSymbolBits < 1)) { return; }