mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-21 19:37:49 +00:00
Expose Writer errors through CaptureThread.
This commit is contained in:
@@ -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() {
|
void CaptureThread::check_fifo_isr() {
|
||||||
// TODO: Prevent over-signalling by transmitting a set of
|
// TODO: Prevent over-signalling by transmitting a set of
|
||||||
// flags from the baseband core.
|
// flags from the baseband core.
|
||||||
|
@@ -53,6 +53,8 @@ public:
|
|||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Optional<std::string> error() const;
|
||||||
|
|
||||||
static void check_fifo_isr();
|
static void check_fifo_isr();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user