mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-12 07:49:32 -05:00
Remove unused lambda captures.
This commit is contained in:
parent
e8cf0b8de7
commit
2808efac4c
@ -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) {
|
void BasebandProcessor::feed_audio_stats(const buffer_s16_t& audio) {
|
||||||
audio_stats.feed(
|
audio_stats.feed(
|
||||||
audio,
|
audio,
|
||||||
[this](const AudioStatistics& statistics) {
|
[](const AudioStatistics& statistics) {
|
||||||
const AudioStatisticsMessage audio_stats_message { statistics };
|
const AudioStatisticsMessage audio_stats_message { statistics };
|
||||||
shared_memory.application_queue.push(audio_stats_message);
|
shared_memory.application_queue.push(audio_stats_message);
|
||||||
}
|
}
|
||||||
|
@ -365,7 +365,7 @@ int main(void) {
|
|||||||
auto& message_handlers = event_dispatcher.message_handlers();
|
auto& message_handlers = event_dispatcher.message_handlers();
|
||||||
|
|
||||||
message_handlers.register_handler(Message::ID::BasebandConfiguration,
|
message_handlers.register_handler(Message::ID::BasebandConfiguration,
|
||||||
[&message_handlers](const Message* const p) {
|
[](const Message* const p) {
|
||||||
auto message = reinterpret_cast<const BasebandConfigurationMessage*>(p);
|
auto message = reinterpret_cast<const BasebandConfigurationMessage*>(p);
|
||||||
baseband_thread.set_configuration(message->configuration);
|
baseband_thread.set_configuration(message->configuration);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user