From acf3fe0297147c80fd5a5576cb7793602abbe982 Mon Sep 17 00:00:00 2001 From: Howard Su Date: Sat, 29 Aug 2020 12:20:34 +0800 Subject: [PATCH] Add a missing else to shutdown a warning message --- modules/radio/src/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/radio/src/path.cpp b/modules/radio/src/path.cpp index 4338980b..bff30903 100644 --- a/modules/radio/src/path.cpp +++ b/modules/radio/src/path.cpp @@ -95,7 +95,7 @@ void SigPath::setDemodulator(int demId, float bandWidth) { deemp.bypass = (_deemp == DEEMP_NONE); demod.start(); } - if (demId == DEMOD_NFM) { + else if (demId == DEMOD_NFM) { API->setVFOSampleRate(vfoName, 16000, bandwidth); demod.setBlockSize(API->getVFOOutputBlockSize(vfoName)); demod.setSampleRate(16000);