mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
reset the udma block for the camera on every frame
improves stability across multiple captures
This commit is contained in:
parent
19b83a8650
commit
2f9a7cd723
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue