mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-22 01:52:41 +00:00
Fix baseband thread init order bug for all procs. (#1293)
This commit is contained in:
@@ -33,14 +33,11 @@ using namespace jammer;
|
||||
class JammerProcessor : 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{3072000, this, NORMALPRIO + 20, baseband::Direction::Transmit};
|
||||
|
||||
JammerChannel* jammer_channels{};
|
||||
|
||||
JammerType noise_type{};
|
||||
@@ -54,6 +51,9 @@ class JammerProcessor : public BasebandProcessor {
|
||||
int8_t sample{0};
|
||||
int8_t re{0}, im{0};
|
||||
RetuneMessage message{};
|
||||
|
||||
/* NB: Threads should be the last members in the class definition. */
|
||||
BasebandThread baseband_thread{3072000, this, baseband::Direction::Transmit};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user