From 2b497c3495d414a2ea4802d14a0388c61a0cc65e Mon Sep 17 00:00:00 2001 From: Vladisslav P Date: Sat, 22 Jan 2022 23:52:00 +0300 Subject: [PATCH] Switch to pwr_squelch --- src/receivers/receiver_base.cpp | 2 +- src/receivers/receiver_base.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/receivers/receiver_base.cpp b/src/receivers/receiver_base.cpp index cc1d51e26a..1ce9f32a65 100644 --- a/src/receivers/receiver_base.cpp +++ b/src/receivers/receiver_base.cpp @@ -42,7 +42,7 @@ receiver_base_cf::receiver_base_cf(std::string src_name, float pref_quad_rate, f { iq_resamp = make_resampler_cc(d_pref_quad_rate/d_quad_rate); agc = make_rx_agc_2f(d_audio_rate, false, 0, 0, 100, 500, 500, 0); - sql = gr::analog::simple_squelch_cc::make(-150.0, 0.001); + sql = gr::analog::pwr_squelch_cc::make(-150.0, 0.001); meter = make_rx_meter_c(d_pref_quad_rate); } diff --git a/src/receivers/receiver_base.h b/src/receivers/receiver_base.h index 434885b2d8..3db8f8407f 100644 --- a/src/receivers/receiver_base.h +++ b/src/receivers/receiver_base.h @@ -24,7 +24,7 @@ #define RECEIVER_BASE_H #include -#include +#include #include #include "dsp/resampler_xx.h" #include "dsp/rx_meter.h" @@ -130,7 +130,7 @@ class receiver_base_cf : public gr::hier_block2 resampler_cc_sptr iq_resamp; /*!< Baseband resampler. */ rx_meter_c_sptr meter; /*!< Signal strength. */ rx_agc_2f_sptr agc; /*!< Receiver AGC. */ - gr::analog::simple_squelch_cc::sptr sql; /*!< Squelch. */ + gr::analog::pwr_squelch_cc::sptr sql; /*!< Squelch. */ gr::blocks::wavfile_sink::sptr wav_sink; /*!< WAV file sink for recording. */ private: float d_pref_quad_rate;