Check capture FIFO before waking M0 capture thread.

This commit is contained in:
Jared Boone 2016-05-10 14:39:24 -07:00
parent b82eff51dd
commit c48a88539a

View File

@ -103,7 +103,9 @@ void CaptureThread::check_fifo_isr() {
// flags from the baseband core.
const auto fifo = StreamOutput::fifo_buffers_full;
if( fifo ) {
chEvtSignalI(thread, EVT_MASK_CAPTURE_THREAD);
if( !fifo->is_empty() ) {
chEvtSignalI(thread, EVT_MASK_CAPTURE_THREAD);
}
}
}