mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-12 11:42:13 -04:00
Expose Writer errors through CaptureThread.
This commit is contained in:
parent
87505f833b
commit
ebf0e765ce
2 changed files with 11 additions and 0 deletions
|
@ -98,6 +98,15 @@ CaptureThread::~CaptureThread() {
|
|||
}
|
||||
}
|
||||
|
||||
Optional<std::string> CaptureThread::error() const {
|
||||
const auto error = writer->error();
|
||||
if( error.is_valid() ) {
|
||||
return { error.value().what() };
|
||||
} else {
|
||||
return { };
|
||||
}
|
||||
}
|
||||
|
||||
void CaptureThread::check_fifo_isr() {
|
||||
// TODO: Prevent over-signalling by transmitting a set of
|
||||
// flags from the baseband core.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue