update shellchat to use the new semver returns

This commit is contained in:
bunnie 2022-07-13 04:43:35 +08:00
parent c08bb6a3f9
commit abe153208f
3 changed files with 6 additions and 6 deletions

View file

@ -190,8 +190,8 @@ impl CmdEnv {
log::info!("EC gateware git commit: {:x}, {}", rev, dirtystr);
let ec_ver = common.com.get_ec_sw_tag().unwrap();
log::info!("EC sw tag: {}", ec_ver.to_string());
let (maj, min, rev) = common.com.get_wf200_fw_rev().unwrap();
log::info!("WF200 fw rev {}.{}.{}", maj, min, rev);
let wf_ver = common.com.get_wf200_fw_rev().unwrap();
log::info!("WF200 fw rev {}.{}.{}", wf_ver.maj, wf_ver.min, wf_ver.rev);
CmdEnv {

View file

@ -181,8 +181,8 @@ impl<'a> ShellCmdApi<'a> for Test {
let (x, y, z, id) = env.com.gyro_read_blocking().unwrap();
log::info!("{}|GYRO|{}|{}|{}|{}|", SENTINEL, x, y, z, id);
let (wf_maj, wf_min, wf_rev) = env.com.get_wf200_fw_rev().unwrap();
log::info!("{}|WF200REV|{}|{}|{}|", SENTINEL, wf_maj, wf_min, wf_rev);
let wf_rev = env.com.get_wf200_fw_rev().unwrap();
log::info!("{}|WF200REV|{}|{}|{}|", SENTINEL, wf_rev.maj, wf_rev.min, wf_rev.rev);
let (ec_rev, ec_dirty) = env.com.get_ec_git_rev().unwrap();
log::info!("{}|ECREV|{:x}|{:?}|", SENTINEL, ec_rev, ec_dirty);
let morestats = env.com.get_more_stats().unwrap();

View file

@ -27,8 +27,8 @@ impl<'a> ShellCmdApi<'a> for Ver {
write!(ret, "EC sw tag: {}", ec_ver.to_string()).unwrap();
}
"wf200" => {
let (maj, min, rev) = env.com.get_wf200_fw_rev().unwrap();
write!(ret, "Wf200 fw rev {}.{}.{}", maj, min, rev).unwrap();
let wf_ver = env.com.get_wf200_fw_rev().unwrap();
write!(ret, "Wf200 fw rev {}.{}.{}", wf_ver.maj, wf_ver.min, wf_ver.rev).unwrap();
}
"soc" => {
let soc_rev = env.llio.soc_gitrev().unwrap();