mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-23 14:57:29 +00:00
Fix baseband thread init order bug for all procs. (#1293)
This commit is contained in:
@@ -29,14 +29,11 @@
|
||||
class ADSBTXProcessor : public BasebandProcessor {
|
||||
public:
|
||||
void execute(const buffer_c8_t& buffer) override;
|
||||
|
||||
void on_message(const Message* const p) override;
|
||||
|
||||
private:
|
||||
bool configured = false;
|
||||
|
||||
BasebandThread baseband_thread{4000000, this, NORMALPRIO + 20, baseband::Direction::Transmit};
|
||||
|
||||
const complex8_t am_lut[4] = {
|
||||
{127, 0},
|
||||
{0, 127},
|
||||
@@ -48,6 +45,9 @@ class ADSBTXProcessor : public BasebandProcessor {
|
||||
uint32_t phase{0};
|
||||
|
||||
TXProgressMessage txprogress_message{};
|
||||
|
||||
/* NB: Threads should be the last members in the class definition. */
|
||||
BasebandThread baseband_thread{4000000, this, baseband::Direction::Transmit};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user