mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-12 19:47:48 +00:00
Stop capture on error.
This commit is contained in:
@@ -268,6 +268,7 @@ void RecordView::on_tick_second() {
|
||||
if( is_active() ) {
|
||||
const auto error = capture_thread->error();
|
||||
if( error.is_valid() ) {
|
||||
stop();
|
||||
report_error(error.value());
|
||||
}
|
||||
const auto dropped_percent = std::min(99U, capture_thread->state().dropped_percent());
|
||||
|
Reference in New Issue
Block a user