report QR code when test code is scanned

This commit is contained in:
bunnie 2026-03-06 19:18:05 +08:00
parent 3ac87613d1
commit 017ab2a5fd

View file

@ -621,6 +621,14 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! {
// stop on the next frame.
if let Some(mut envelope) = qr_request.take() {
let metadata = format!("{:?}", meta);
if content.starts_with("test://") {
log::info!(
"{}{},{}",
bao1x_hal::board::BOOKEND_START,
content,
bao1x_hal::board::BOOKEND_END
);
}
let acquisition =
QrAcquisition { content: Some(content), meta: Some(metadata) };
let mut response = unsafe {