mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 05:57:40 +00:00
Fix baseband thread init order bug for all procs. (#1293)
This commit is contained in:
@@ -37,22 +37,20 @@
|
||||
class WidebandSpectrum : public BasebandProcessor {
|
||||
public:
|
||||
void execute(const buffer_c8_t& buffer) override;
|
||||
|
||||
void on_message(const Message* const message) override;
|
||||
|
||||
private:
|
||||
bool configured = false;
|
||||
|
||||
size_t baseband_fs = 20000000;
|
||||
|
||||
BasebandThread baseband_thread{baseband_fs, this, NORMALPRIO + 20};
|
||||
RSSIThread rssi_thread{NORMALPRIO + 10};
|
||||
|
||||
SpectrumCollector channel_spectrum{};
|
||||
|
||||
std::array<complex16_t, 256> spectrum{};
|
||||
|
||||
size_t phase = 0, trigger = 127;
|
||||
|
||||
/* NB: Threads should be the last members in the class definition. */
|
||||
BasebandThread baseband_thread{baseband_fs, this, baseband::Direction::Receive};
|
||||
RSSIThread rssi_thread{};
|
||||
};
|
||||
|
||||
#endif /*__PROC_WIDEBAND_SPECTRUM_H__*/
|
||||
|
Reference in New Issue
Block a user