mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 07:17:39 +00:00
Handle baseband::dma::wait_for_rx_buffer() returning empty buffer.
Was technically OK before, because sample count was zero. But seems silly (and vaguely dangerous) to call all that code with a nullptr.
This commit is contained in:
@@ -92,6 +92,10 @@ struct buffer_t {
|
||||
timestamp { timestamp }
|
||||
{
|
||||
}
|
||||
|
||||
operator bool() const {
|
||||
return (p != nullptr);
|
||||
}
|
||||
};
|
||||
|
||||
#endif/*__BUFFER_H__*/
|
||||
|
Reference in New Issue
Block a user