mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 17:27:39 +00:00
Transform update spectrum event into message.
This commit is contained in:
@@ -116,3 +116,9 @@ void NarrowbandFMAudio::execute(const buffer_c8_t& buffer) {
|
||||
|
||||
fill_audio_buffer(audio);
|
||||
}
|
||||
|
||||
void NarrowbandFMAudio::on_message(const Message* const message) {
|
||||
if( message->id == Message::ID::UpdateSpectrum ) {
|
||||
channel_spectrum.update();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user