From ae58f8eb6408189eb16e3e977c58fecf21248437 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 20 Apr 2020 13:28:07 +0100 Subject: [PATCH] Don't square the threshold value. --- FMCTCSSRX.cpp | 2 +- SerialPort.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FMCTCSSRX.cpp b/FMCTCSSRX.cpp index 728cc51..d6a529a 100644 --- a/FMCTCSSRX.cpp +++ b/FMCTCSSRX.cpp @@ -102,7 +102,7 @@ uint8_t CFMCTCSSRX::setParams(uint8_t frequency, uint8_t threshold) if (m_coeff == 0.0F) return 4U; - m_threshold = float32_t(threshold * threshold); + m_threshold = float32_t(threshold); return 0U; } diff --git a/SerialPort.cpp b/SerialPort.cpp index 45624da..1490c8c 100644 --- a/SerialPort.cpp +++ b/SerialPort.cpp @@ -101,7 +101,7 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U; #define HW_TYPE "MMDVM" #endif -#define DESCRIPTION "20200418 (D-Star/DMR/System Fusion/P25/NXDN/POCSAG/FM)" +#define DESCRIPTION "20200420 (D-Star/DMR/System Fusion/P25/NXDN/POCSAG/FM)" #if defined(GITVERSION) #define concat(h, a, b, c) h " " a " " b " GitID #" c ""