mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-03 12:06:52 -04:00
Fix baseband thread init order bug for all procs. (#1293)
This commit is contained in:
parent
828eb67a52
commit
7bd370b5bc
46 changed files with 226 additions and 174 deletions
|
@ -29,14 +29,11 @@
|
|||
class OOKProcessor : 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{2280000, this, NORMALPRIO + 20, baseband::Direction::Transmit};
|
||||
|
||||
uint32_t samples_per_bit{0};
|
||||
uint8_t repeat{0};
|
||||
uint32_t length{0};
|
||||
|
@ -67,6 +64,9 @@ class OOKProcessor : public BasebandProcessor {
|
|||
size_t scan_progress{0};
|
||||
uint8_t scan_done{true};
|
||||
|
||||
/* NB: Threads should be the last members in the class definition. */
|
||||
BasebandThread baseband_thread{2280000, this, baseband::Direction::Transmit};
|
||||
|
||||
size_t duval_algo_step();
|
||||
void scan_process(const buffer_c8_t& buffer);
|
||||
bool scan_init(unsigned int order);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue