mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-22 13:27:24 +00:00
Check capture FIFO before waking M0 capture thread.
This commit is contained in:
@@ -103,9 +103,11 @@ void CaptureThread::check_fifo_isr() {
|
|||||||
// flags from the baseband core.
|
// flags from the baseband core.
|
||||||
const auto fifo = StreamOutput::fifo_buffers_full;
|
const auto fifo = StreamOutput::fifo_buffers_full;
|
||||||
if( fifo ) {
|
if( fifo ) {
|
||||||
|
if( !fifo->is_empty() ) {
|
||||||
chEvtSignalI(thread, EVT_MASK_CAPTURE_THREAD);
|
chEvtSignalI(thread, EVT_MASK_CAPTURE_THREAD);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
msg_t CaptureThread::run() {
|
msg_t CaptureThread::run() {
|
||||||
StreamOutput stream { &config };
|
StreamOutput stream { &config };
|
||||||
|
Reference in New Issue
Block a user