mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-29 17:49:14 -04:00
Move init/configure details into RSSI/BasebandThread classes.
This commit is contained in:
parent
ed25f65e8b
commit
818790e734
3 changed files with 20 additions and 20 deletions
|
@ -36,6 +36,9 @@ Thread* RSSIThread::start(const tprio_t priority) {
|
|||
}
|
||||
|
||||
void RSSIThread::run() {
|
||||
rf::rssi::init();
|
||||
rf::rssi::dma::allocate(4, 400);
|
||||
|
||||
RSSIStatisticsCollector stats;
|
||||
|
||||
while(true) {
|
||||
|
@ -53,4 +56,6 @@ void RSSIThread::run() {
|
|||
}
|
||||
);
|
||||
}
|
||||
|
||||
rf::rssi::dma::free();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue