mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-25 07:19:28 -05:00
Clear application message queue after baseband is shut down.
This commit is contained in:
parent
30efa53956
commit
57293bc5eb
@ -115,6 +115,8 @@ void shutdown() {
|
|||||||
ShutdownMessage message;
|
ShutdownMessage message;
|
||||||
send_message(&message);
|
send_message(&message);
|
||||||
|
|
||||||
|
shared_memory.application_queue.reset();
|
||||||
|
|
||||||
baseband_image_running = false;
|
baseband_image_running = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,6 +74,10 @@ public:
|
|||||||
return fifo.is_empty();
|
return fifo.is_empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void reset() {
|
||||||
|
fifo.reset();
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FIFO<uint8_t> fifo;
|
FIFO<uint8_t> fifo;
|
||||||
Mutex mutex_write;
|
Mutex mutex_write;
|
||||||
|
Loading…
Reference in New Issue
Block a user