From c3757248a891be790845a152147627d15b455b12 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 7 Dec 2025 20:52:46 +0800 Subject: [PATCH] fix hosted mode --- services/bao-console/src/cmds/test.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/bao-console/src/cmds/test.rs b/services/bao-console/src/cmds/test.rs index bd4128add..9f87091c8 100644 --- a/services/bao-console/src/cmds/test.rs +++ b/services/bao-console/src/cmds/test.rs @@ -128,6 +128,7 @@ impl<'a> ShellCmdApi<'a> for Test { "keepon" => { todo!("Fix this to use DCDC2 for keepon (as per baosec v2)"); } + #[cfg(feature = "board-baosec")] "qrshow" => { // note that 40 bytes gives 320 bits which fits nicely into a version 3 code, // which allows 4 pixels per module rendering. @@ -148,6 +149,7 @@ impl<'a> ShellCmdApi<'a> for Test { let encoded = base45::encode(&test_data); modals.show_notification("", Some(&encoded)).ok(); } + #[cfg(feature = "board-baosec")] "qrget" => { let gfx = ux_api::service::gfx::Gfx::new(&_env.xns).unwrap(); match gfx.acquire_qr() {