mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-22 03:09:13 +00:00
Fix baseband thread init order bug for all procs. (#1293)
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
class MicTXProcessor : public BasebandProcessor {
|
||||
public:
|
||||
void execute(const buffer_c8_t& buffer) override;
|
||||
|
||||
void on_message(const Message* const msg) override;
|
||||
|
||||
private:
|
||||
@@ -40,8 +39,6 @@ class MicTXProcessor : public BasebandProcessor {
|
||||
|
||||
bool configured{false};
|
||||
|
||||
BasebandThread baseband_thread{baseband_fs, this, NORMALPRIO + 20, baseband::Direction::Transmit};
|
||||
|
||||
int16_t audio_data[64];
|
||||
buffer_s16_t audio_buffer{
|
||||
audio_data,
|
||||
@@ -74,6 +71,9 @@ class MicTXProcessor : public BasebandProcessor {
|
||||
|
||||
AudioLevelReportMessage level_message{};
|
||||
TXProgressMessage txprogress_message{};
|
||||
|
||||
/* NB: Threads should be the last members in the class definition. */
|
||||
BasebandThread baseband_thread{baseband_fs, this, baseband::Direction::Transmit};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user