mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-12-15 15:59:39 -05:00
Transform update spectrum event into message.
This commit is contained in:
parent
c9f9d97d07
commit
39ca6fec62
10 changed files with 33 additions and 13 deletions
|
|
@ -67,3 +67,9 @@ void WidebandSpectrum::execute(const buffer_c8_t& buffer) {
|
|||
|
||||
i2s::i2s0::tx_mute();
|
||||
}
|
||||
|
||||
void WidebandSpectrum::on_message(const Message* const message) {
|
||||
if( message->id == Message::ID::UpdateSpectrum ) {
|
||||
channel_spectrum.update();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue