diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/hosted/system-hosted.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/hosted/system-hosted.c b/firmware/target/hosted/system-hosted.c index 7f0949daf2..cad84ac868 100644 --- a/firmware/target/hosted/system-hosted.c +++ b/firmware/target/hosted/system-hosted.c @@ -84,7 +84,9 @@ static void sig_handler(int sig, siginfo_t *siginfo, void *context) void power_off(void) { + backlight_hw_off(); system("/sbin/poweroff"); + while (1); /* halt */ } void system_init(void) @@ -109,7 +111,9 @@ void system_init(void) void system_reboot(void) { + backlight_hw_off(); system("/sbin/reboot"); + while (1); /* halt */ } void system_exception_wait(void) |