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