From c87ca8c143ed259803a94bae803f3f4b3500fc88 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 24 Oct 2020 10:34:04 +0200 Subject: [PATCH] ChannelAPI: added counter blocking features feedback --- sdrbase/channel/channelapi.cpp | 1 + sdrbase/channel/channelapi.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sdrbase/channel/channelapi.cpp b/sdrbase/channel/channelapi.cpp index 54cddb6b9..8df494a05 100644 --- a/sdrbase/channel/channelapi.cpp +++ b/sdrbase/channel/channelapi.cpp @@ -21,6 +21,7 @@ #include "channelapi.h" ChannelAPI::ChannelAPI(const QString& name, StreamType streamType) : + m_featuresSettingsFeedbackBlockCount(0), m_streamType(streamType), m_name(name), m_indexInDeviceSet(-1), diff --git a/sdrbase/channel/channelapi.h b/sdrbase/channel/channelapi.h index f0bde4a02..5d18a557e 100644 --- a/sdrbase/channel/channelapi.h +++ b/sdrbase/channel/channelapi.h @@ -122,6 +122,7 @@ public: // Features support void addFeatureSettingsFeedback(Feature *feature); void removeFeatureSettingsFeedback(Feature *feature); + void setFeatureSettingsFeedbackBlockCount(unsigned int count) { m_featuresSettingsFeedbackBlockCount = count; } // MIMO support StreamType getStreamType() const { return m_streamType; } @@ -131,6 +132,7 @@ public: protected: QList m_featuresSettingsFeedback; //!< list of features to report back settings changes in swagger API format + unsigned int m_featuresSettingsFeedbackBlockCount; //!< actually send feedback if 0. Decremented at each potential feedback private: StreamType m_streamType;