From 3f8d22eb2588c0cbefffb319f63522b44110f14d Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 20 Feb 2023 16:53:24 +0800 Subject: [PATCH] force backlight off before issuing kill command in test this helps deconvolve the backlight current from the idle current more reliably --- services/shellchat/src/cmds/test.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/shellchat/src/cmds/test.rs b/services/shellchat/src/cmds/test.rs index 2d227c4f4..8598b4864 100644 --- a/services/shellchat/src/cmds/test.rs +++ b/services/shellchat/src/cmds/test.rs @@ -328,7 +328,9 @@ impl<'a> ShellCmdApi<'a> for Test { } "kill" => { log::info!("{}|KILL|", SENTINEL); - env.ticktimer.sleep_ms(500).unwrap(); + env.llio.wfi_override(true).unwrap(); + env.com.set_backlight(0, 0).unwrap(); + env.ticktimer.sleep_ms(800).unwrap(); env.llio.self_destruct(0x2718_2818).unwrap(); env.llio.self_destruct(0x3141_5926).unwrap(); env.ticktimer.sleep_ms(100).unwrap();