fix mass-storage feature missing in shellchat

This commit is contained in:
bunnie 2023-01-14 00:08:30 +08:00
parent 26f12990f1
commit 02cd24e799
2 changed files with 4 additions and 0 deletions

View file

@ -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"

View file

@ -19,7 +19,10 @@ impl<'a> ShellCmdApi<'a> for Usb {
fn process(&mut self, args: xous_ipc::String::<1024>, _env: &mut CommonEnv) -> Result<Option<xous_ipc::String::<1024>>, xous::Error> {
let mut ret = xous_ipc::String::<1024>::new();
#[cfg(not(feature="mass-storage"))]
let helpstring = "usb [hid] [fido] [debug] [send <string>] [status] [leds] [lock] [unlock] [kbdtest]";
#[cfg(feature="mass-storage")]
let helpstring = "usb [hid] [fido] [ms] [debug] [send <string>] [status] [leds] [lock] [unlock] [kbdtest]";
let mut tokens = args.as_str().unwrap().split(' ');