diff --git a/services/bao-video/Cargo.toml b/services/bao-video/Cargo.toml index c2a02f3e3..a764b225e 100644 --- a/services/bao-video/Cargo.toml +++ b/services/bao-video/Cargo.toml @@ -55,6 +55,8 @@ hosted-baosec = ["bao1x-emu", "ux-api/hosted-baosec", "no-gam"] # temporary feature - remove after we have properly created a camera control API autotest = [] +# factory feature - makes it keep on scanning forever - used for calibrating factory test jigs +eternal-scan = [] with-logo = [] bao1x = ["utralib/bao1x", "blitstr2/bao1x"] diff --git a/services/bao-video/src/main.rs b/services/bao-video/src/main.rs index fbd9b795a..948e36995 100644 --- a/services/bao-video/src/main.rs +++ b/services/bao-video/src/main.rs @@ -613,6 +613,11 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! { display .draw() .unwrap_or_else(|_| display_timeout_handler(&udma_global, &mut display)); + #[cfg(feature = "eternal-scan")] + { + display.clear(); + continue; + } let mut img = rqrr::PreparedImage::prepare_from_greyscale(IMAGE_WIDTH, IMAGE_HEIGHT, |x, y| { frame[y * IMAGE_WIDTH + x]