diff --git a/firmware/baseband/baseband_processor.cpp b/firmware/baseband/baseband_processor.cpp index 2b57b8ec8..cdf476ae2 100644 --- a/firmware/baseband/baseband_processor.cpp +++ b/firmware/baseband/baseband_processor.cpp @@ -94,6 +94,7 @@ void BasebandProcessor::fill_audio_buffer(const buffer_s16_t& audio) { } void BasebandProcessor::post_channel_stats_message(const ChannelStatistics& statistics) { + ChannelStatisticsMessage channel_stats_message; channel_stats_message.statistics = statistics; shared_memory.application_queue.push(channel_stats_message); } @@ -117,6 +118,7 @@ void BasebandProcessor::feed_audio_stats(const buffer_s16_t& audio) { } void BasebandProcessor::post_audio_stats_message(const AudioStatistics& statistics) { + AudioStatisticsMessage audio_stats_message; audio_stats_message.statistics = statistics; shared_memory.application_queue.push(audio_stats_message); } diff --git a/firmware/baseband/baseband_processor.hpp b/firmware/baseband/baseband_processor.hpp index 6d61aec04..32e4ea329 100644 --- a/firmware/baseband/baseband_processor.hpp +++ b/firmware/baseband/baseband_processor.hpp @@ -62,10 +62,7 @@ private: BlockDecimator<256> channel_spectrum_decimator { 4 }; ChannelStatsCollector channel_stats; - ChannelStatisticsMessage channel_stats_message; - AudioStatsCollector audio_stats; - AudioStatisticsMessage audio_stats_message; void post_channel_stats_message(const ChannelStatistics& statistics); void post_channel_spectrum_message(const buffer_c16_t& data);