diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-06-29 19:01:24 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-06-29 19:01:24 +0000 |
commit | da5910eac0629c4ac38c7967160e455ae6db9915 (patch) | |
tree | 551cdd72c3aa945fcd97659ccf71da31f3ca4643 /firmware/export/powermgmt.h | |
parent | 63c266e5e543cf7341418b1a83e938d05ede2c7d (diff) | |
download | rockbox-da5910eac0629c4ac38c7967160e455ae6db9915.tar.gz rockbox-da5910eac0629c4ac38c7967160e455ae6db9915.zip |
Shutdown and powermanagement cleanup: * Use the proper function for determining whether the battery level is safe, and get rid of the extra one. Low battery warning now appears at 10% or less. * Don't delay shutdown artificially by 3 seconds due to low/critical battery warning. * Shutdown at critical battery level: Skip all disk-hitting housekeeping, make sure dircache stops, and don't mark disk as clean in eeprom.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13734 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/powermgmt.h')
-rw-r--r-- | firmware/export/powermgmt.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index b8e8b580d1..d42cc30154 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h | |||
@@ -144,9 +144,6 @@ void battery_read_info(int *adc, int *voltage, int *level); | |||
144 | /* Tells if the battery level is safe for disk writes */ | 144 | /* Tells if the battery level is safe for disk writes */ |
145 | bool battery_level_safe(void); | 145 | bool battery_level_safe(void); |
146 | 146 | ||
147 | /* Tells if battery is in critical power saving state */ | ||
148 | bool battery_level_critical(void); | ||
149 | |||
150 | void set_poweroff_timeout(int timeout); | 147 | void set_poweroff_timeout(int timeout); |
151 | void set_battery_capacity(int capacity); /* set local battery capacity value */ | 148 | void set_battery_capacity(int capacity); /* set local battery capacity value */ |
152 | void set_battery_type(int type); /* set local battery type */ | 149 | void set_battery_type(int type); /* set local battery type */ |