From 2f9a7cd723a1e821fc91d52152d70637b646a738 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 3 Apr 2026 01:53:13 +0800 Subject: [PATCH] reset the udma block for the camera on every frame improves stability across multiple captures --- services/bao-video/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/bao-video/src/main.rs b/services/bao-video/src/main.rs index dde9c2e24..96632db9e 100644 --- a/services/bao-video/src/main.rs +++ b/services/bao-video/src/main.rs @@ -444,6 +444,9 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! { #[cfg(not(feature = "hosted-baosec"))] GfxOpcode::AcquireQr => { if qr_request.is_none() { + // reset camera UDMA block + udma_global.reset(PeriphId::Cam); + // display.stash(); // save a copy of the UI // this will defer response until later qr_request = msg_opt.take();