diff --git a/firmware/baseband/baseband_processor.cpp b/firmware/baseband/baseband_processor.cpp index 0f6a8fc0..620e965e 100644 --- a/firmware/baseband/baseband_processor.cpp +++ b/firmware/baseband/baseband_processor.cpp @@ -106,7 +106,7 @@ void BasebandProcessor::post_channel_spectrum_message(const buffer_c16_t& data) void BasebandProcessor::feed_audio_stats(const buffer_s16_t& audio) { audio_stats.feed( audio, - [this](const AudioStatistics& statistics) { + [](const AudioStatistics& statistics) { const AudioStatisticsMessage audio_stats_message { statistics }; shared_memory.application_queue.push(audio_stats_message); } diff --git a/firmware/baseband/main.cpp b/firmware/baseband/main.cpp index f5b0e1eb..d6995dba 100755 --- a/firmware/baseband/main.cpp +++ b/firmware/baseband/main.cpp @@ -365,7 +365,7 @@ int main(void) { auto& message_handlers = event_dispatcher.message_handlers(); message_handlers.register_handler(Message::ID::BasebandConfiguration, - [&message_handlers](const Message* const p) { + [](const Message* const p) { auto message = reinterpret_cast(p); baseband_thread.set_configuration(message->configuration); }