From dc2c79df4dc301abd6254818d6f9dcdb3f8d47ed Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 17 Oct 2022 05:06:05 +0800 Subject: [PATCH] deprecate reboot function in test routines --- services/shellchat/src/cmds/test.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/shellchat/src/cmds/test.rs b/services/shellchat/src/cmds/test.rs index 8b1f0cc99..6dc1c733f 100644 --- a/services/shellchat/src/cmds/test.rs +++ b/services/shellchat/src/cmds/test.rs @@ -632,7 +632,8 @@ impl<'a> ShellCmdApi<'a> for Test { env.com.ship_mode().unwrap(); // now send the power off command - env.com.power_off_soc().unwrap(); + let susres = susres::Susres::new_without_hook(&env.xns).unwrap(); + susres.immediate_poweroff().unwrap(); log::info!("CMD: ship mode now!"); // pause execution, nothing after this should be reachable @@ -758,7 +759,8 @@ impl<'a> ShellCmdApi<'a> for Test { env.com.ship_mode().unwrap(); // now send the power off command - env.com.power_off_soc().unwrap(); + let susres = susres::Susres::new_without_hook(&env.xns).unwrap(); + susres.immediate_poweroff().unwrap(); log::info!("CMD: ship mode now!"); // pause execution, nothing after this should be reachable