Transform update spectrum event into message.

This commit is contained in:
Jared Boone
2016-01-03 12:05:47 -08:00
parent c9f9d97d07
commit 39ca6fec62
10 changed files with 33 additions and 13 deletions

View File

@@ -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();
}
}