mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-06-08 11:18:34 +00:00
Squelch special case when threshold == 0, do not squelch.
This commit is contained in:
parent
01df79641c
commit
5dac0bbe49
@ -25,6 +25,10 @@
|
|||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
bool FMSquelch::execute(const buffer_s16_t& audio) {
|
bool FMSquelch::execute(const buffer_s16_t& audio) {
|
||||||
|
if( threshold_squared == 0 ) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: No hard-coded array size.
|
// TODO: No hard-coded array size.
|
||||||
std::array<int16_t, N> squelch_energy_buffer;
|
std::array<int16_t, N> squelch_energy_buffer;
|
||||||
const buffer_s16_t squelch_energy {
|
const buffer_s16_t squelch_energy {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user