mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-09-18 20:14:42 -04:00
Fix baseband thread init order bug for all procs. (#1293)
This commit is contained in:
parent
828eb67a52
commit
7bd370b5bc
46 changed files with 226 additions and 174 deletions
|
@ -131,9 +131,6 @@ class SondeProcessor : public BasebandProcessor {
|
|||
|
||||
ToneGen tone_gen{};
|
||||
|
||||
BasebandThread baseband_thread{baseband_fs, this, NORMALPRIO + 20, baseband::Direction::Receive};
|
||||
RSSIThread rssi_thread{NORMALPRIO + 10};
|
||||
|
||||
std::array<complex16_t, 512> dst{};
|
||||
const buffer_c16_t dst_buffer{
|
||||
dst.data(),
|
||||
|
@ -179,6 +176,11 @@ class SondeProcessor : public BasebandProcessor {
|
|||
shared_memory.application_queue.push(message);
|
||||
}};
|
||||
|
||||
/* NB: Threads should be the last members in the class definition. */
|
||||
BasebandThread baseband_thread{
|
||||
baseband_fs, this, baseband::Direction::Receive, /*auto_start*/ false};
|
||||
RSSIThread rssi_thread{};
|
||||
|
||||
void play_beep();
|
||||
void stop_beep();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue