mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-23 17:28:19 +00:00
Fix baseband thread init order bug for all procs. (#1293)
This commit is contained in:
@@ -32,14 +32,11 @@
|
||||
class AFSKProcessor : public BasebandProcessor {
|
||||
public:
|
||||
void execute(const buffer_c8_t& buffer) override;
|
||||
|
||||
void on_message(const Message* const msg) override;
|
||||
|
||||
private:
|
||||
bool configured = false;
|
||||
|
||||
BasebandThread baseband_thread{AFSK_SAMPLERATE, this, NORMALPRIO + 20, baseband::Direction::Transmit};
|
||||
|
||||
uint32_t afsk_samples_per_bit{0};
|
||||
uint32_t afsk_phase_inc_mark{0};
|
||||
uint32_t afsk_phase_inc_space{0};
|
||||
@@ -59,6 +56,9 @@ class AFSKProcessor : public BasebandProcessor {
|
||||
int8_t re{0}, im{0};
|
||||
|
||||
TXProgressMessage txprogress_message{};
|
||||
|
||||
/* NB: Threads should be the last members in the class definition. */
|
||||
BasebandThread baseband_thread{AFSK_SAMPLERATE, this, baseband::Direction::Transmit};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user