diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2005-03-24 07:31:59 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2005-03-24 07:31:59 +0000 |
commit | 853bc3dcf85aa1284a0e5b550277c40beb7697a9 (patch) | |
tree | 604b1bc7edcdb473efcdf07b1399eefc359dde0d /firmware/powermgmt.c | |
parent | 3644fa28245d84b7bccc65661ca6640f029c000c (diff) | |
download | rockbox-853bc3dcf85aa1284a0e5b550277c40beb7697a9.tar.gz rockbox-853bc3dcf85aa1284a0e5b550277c40beb7697a9.zip |
sorry, the patch broke all the sims
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6225 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 0366896bb4..71b0f08fff 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -94,6 +94,11 @@ void set_car_adapter_mode(bool setting) | |||
94 | (void)setting; | 94 | (void)setting; |
95 | } | 95 | } |
96 | 96 | ||
97 | void reset_poweroff_timer(void) | ||
98 | { | ||
99 | } | ||
100 | |||
101 | |||
97 | #else /* not SIMULATOR ******************************************************/ | 102 | #else /* not SIMULATOR ******************************************************/ |
98 | 103 | ||
99 | static const int poweroff_idle_timeout_value[15] = | 104 | static const int poweroff_idle_timeout_value[15] = |
@@ -908,6 +913,7 @@ void powermgmt_init(void) | |||
908 | /* Various hardware housekeeping tasks relating to shutting down the jukebox */ | 913 | /* Various hardware housekeeping tasks relating to shutting down the jukebox */ |
909 | void shutdown_hw(void) | 914 | void shutdown_hw(void) |
910 | { | 915 | { |
916 | #ifndef SIMULATOR | ||
911 | #if defined(DEBUG_FILE) && defined(HAVE_CHARGE_CTRL) | 917 | #if defined(DEBUG_FILE) && defined(HAVE_CHARGE_CTRL) |
912 | if(fd >= 0) { | 918 | if(fd >= 0) { |
913 | close(fd); | 919 | close(fd); |
@@ -930,4 +936,5 @@ void shutdown_hw(void) | |||
930 | lcd_set_contrast(0); | 936 | lcd_set_contrast(0); |
931 | #endif | 937 | #endif |
932 | power_off(); | 938 | power_off(); |
939 | #endif /* #ifndef SIMULATOR */ | ||
933 | } | 940 | } |