commit again for debugging

This commit is contained in:
bunnie 2021-04-09 00:29:53 +08:00
parent 856934c2c9
commit e7e10a0ec9
2 changed files with 9 additions and 9 deletions

View file

@ -59,10 +59,10 @@ pub struct CommonEnv {
///// 1. add your module here, and pull its namespace into the local crate
mod echo; use echo::*;
//mod test; use test::*;
mod test; use test::*;
mod sleep; use sleep::*;
mod sensors; use sensors::*;
//mod callback; use callback::*;
mod callback; use callback::*;
mod rtc_cmd; use rtc_cmd::*;
#[derive(Debug)]
@ -70,10 +70,10 @@ pub struct CmdEnv {
common_env: CommonEnv,
lastverb: String::<256>,
///// 2. declare storage for your command here.
//test_cmd: Test,
test_cmd: Test,
sleep_cmd: Sleep,
sensors_cmd: Sensors,
//callback_cmd: CallBack,
callback_cmd: CallBack,
rtc_cmd: RtcCmd,
}
impl CmdEnv {
@ -88,10 +88,10 @@ impl CmdEnv {
},
lastverb: String::<256>::new(),
///// 3. initialize your storage, by calling new()
//test_cmd: Test::new(),
test_cmd: Test::new(),
sleep_cmd: Sleep::new(),
sensors_cmd: Sensors::new(),
//callback_cmd: CallBack::new(),
callback_cmd: CallBack::new(),
rtc_cmd: RtcCmd::new(&xns),
}
}
@ -103,10 +103,10 @@ impl CmdEnv {
let commands: &mut [& mut dyn ShellCmdApi] = &mut [
///// 4. add your command to this array, so that it can be looked up and dispatched
&mut echo_cmd,
//&mut self.test_cmd,
&mut self.test_cmd,
&mut self.sleep_cmd,
&mut self.sensors_cmd,
//&mut self.callback_cmd,
&mut self.callback_cmd,
&mut self.rtc_cmd,
];

View file

@ -82,7 +82,7 @@ fn try_main() -> Result<(), DynError> {
];
let task = env::args().nth(1);
match task.as_deref() {
Some("renode-image") => renode_image(false, &minimal_pkgs)?,
Some("renode-image") => renode_image(false, &hw_pkgs)?,
Some("renode-test") => renode_image(
false,
&[