Clear application message queue after baseband is shut down.

This commit is contained in:
Jared Boone 2016-07-02 16:19:28 -07:00
parent 30efa53956
commit 57293bc5eb
2 changed files with 6 additions and 0 deletions

View File

@ -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;
} }

View File

@ -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;