mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-22 20:07:35 +00:00
Workaround for Capture startup hang (#1285)
* Attempt to fix Capture startup hang * Pump baseband_queue on M4 startup * Synchronization experiment * Moved SpectrumCapture member, better hang detection for M0 * Prevent execute from working on members until class has been initialized. * Formatting * Remove workaround. * Rebase on next
This commit is contained in:
@@ -46,9 +46,13 @@ class CaptureProcessor : public BasebandProcessor {
|
||||
|
||||
private:
|
||||
// TODO: Repeated value needs to be transmitted from application side.
|
||||
size_t baseband_fs = 0;
|
||||
size_t baseband_fs = 3072000;
|
||||
static constexpr auto spectrum_rate_hz = 50.0f;
|
||||
|
||||
// HACK: BasebandThread starts immediately and starts sending data to members
|
||||
// before they are initialized. This is a workaround to prevent uninit data problems.
|
||||
bool ready = false;
|
||||
|
||||
BasebandThread baseband_thread{baseband_fs, this, NORMALPRIO + 20, baseband::Direction::Receive};
|
||||
RSSIThread rssi_thread{NORMALPRIO + 10};
|
||||
|
||||
|
Reference in New Issue
Block a user