mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
report QR code when test code is scanned
This commit is contained in:
parent
3ac87613d1
commit
017ab2a5fd
1 changed files with 8 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue