reset the udma block for the camera on every frame

improves stability across multiple captures
This commit is contained in:
bunnie 2026-04-03 01:53:13 +08:00
parent 19b83a8650
commit 2f9a7cd723

View file

@ -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();