diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-09-28 20:10:26 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-09-29 00:27:49 +0000 |
commit | 7719010ed73759ca871ba2dbcdf65e704cd454cb (patch) | |
tree | 323385c9a9f4fae756c17f0e7e0697545b9de606 /firmware/target/hosted/system-hosted.c | |
parent | fd2e65e94de0bcbaac21894f87a7800c4a6fb7b3 (diff) | |
download | rockbox-7719010ed73759ca871ba2dbcdf65e704cd454cb.tar.gz rockbox-7719010ed73759ca871ba2dbcdf65e704cd454cb.zip |
hosted: Slightly cleaner shutdown; kill the display first.
Change-Id: I620d7afb2eb0556cde07c7828b134b13892e6db4
Diffstat (limited to 'firmware/target/hosted/system-hosted.c')
-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) | |||
84 | 84 | ||
85 | void power_off(void) | 85 | void power_off(void) |
86 | { | 86 | { |
87 | backlight_hw_off(); | ||
87 | system("/sbin/poweroff"); | 88 | system("/sbin/poweroff"); |
89 | while (1); /* halt */ | ||
88 | } | 90 | } |
89 | 91 | ||
90 | void system_init(void) | 92 | void system_init(void) |
@@ -109,7 +111,9 @@ void system_init(void) | |||
109 | 111 | ||
110 | void system_reboot(void) | 112 | void system_reboot(void) |
111 | { | 113 | { |
114 | backlight_hw_off(); | ||
112 | system("/sbin/reboot"); | 115 | system("/sbin/reboot"); |
116 | while (1); /* halt */ | ||
113 | } | 117 | } |
114 | 118 | ||
115 | void system_exception_wait(void) | 119 | void system_exception_wait(void) |