From da5910eac0629c4ac38c7967160e455ae6db9915 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 29 Jun 2007 19:01:24 +0000 Subject: 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 --- firmware/export/powermgmt.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'firmware/export') 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); /* Tells if the battery level is safe for disk writes */ bool battery_level_safe(void); -/* Tells if battery is in critical power saving state */ -bool battery_level_critical(void); - void set_poweroff_timeout(int timeout); void set_battery_capacity(int capacity); /* set local battery capacity value */ void set_battery_type(int type); /* set local battery type */ -- cgit v1.2.3