diff --git a/services/shellchat/Cargo.toml b/services/shellchat/Cargo.toml index 084f00015..296a93619 100644 --- a/services/shellchat/Cargo.toml +++ b/services/shellchat/Cargo.toml @@ -127,4 +127,5 @@ nettest = [] # batch network tests tls = ["rustls", "webpki-roots", "ring", "tungstenite", "url"] shellperf = ["ring", "perflib", "xous/v2p", "random-pick"] # this also needs the project-wide "perfcounter" feature to be selected. shellchat is the exclusive manager of the performance counter, do not use with e.g. "vaultperf" feature extra-tests = [] +mass-storage = [] default = [] # "debugprint" diff --git a/services/shellchat/src/cmds/usb.rs b/services/shellchat/src/cmds/usb.rs index 2015f44b0..e5e7135e7 100644 --- a/services/shellchat/src/cmds/usb.rs +++ b/services/shellchat/src/cmds/usb.rs @@ -19,7 +19,10 @@ impl<'a> ShellCmdApi<'a> for Usb { fn process(&mut self, args: xous_ipc::String::<1024>, _env: &mut CommonEnv) -> Result>, xous::Error> { let mut ret = xous_ipc::String::<1024>::new(); + #[cfg(not(feature="mass-storage"))] let helpstring = "usb [hid] [fido] [debug] [send ] [status] [leds] [lock] [unlock] [kbdtest]"; + #[cfg(feature="mass-storage")] + let helpstring = "usb [hid] [fido] [ms] [debug] [send ] [status] [leds] [lock] [unlock] [kbdtest]"; let mut tokens = args.as_str().unwrap().split(' ');