mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-03 03:56:44 -04:00
Give Processors a run() function.
So main() can call it, start a Processor linked in to the baseband binary.
This commit is contained in:
parent
1a5f3a4422
commit
500a651bcf
9 changed files with 57 additions and 15 deletions
|
@ -25,6 +25,8 @@
|
|||
|
||||
#include "dsp_fft.hpp"
|
||||
|
||||
#include "event_m4.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
|
@ -72,3 +74,8 @@ void WidebandSpectrum::on_message(const Message* const message) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void run() {
|
||||
EventDispatcher event_dispatcher { std::make_unique<WidebandSpectrum>() };
|
||||
event_dispatcher.run();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue