mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 10:27:45 +00:00
Fix baseband thread init order bug for all procs. (#1293)
This commit is contained in:
@@ -74,9 +74,6 @@ class TPMSProcessor : public BasebandProcessor {
|
||||
private:
|
||||
static constexpr size_t baseband_fs = 2457600;
|
||||
|
||||
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(),
|
||||
@@ -141,6 +138,11 @@ class TPMSProcessor : public BasebandProcessor {
|
||||
const TPMSPacketMessage message{tpms::SignalType::OOK_8k4_Schrader, packet};
|
||||
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{};
|
||||
};
|
||||
|
||||
#endif /*__PROC_TPMS_H__*/
|
||||
|
Reference in New Issue
Block a user