summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorStéphane Doyon <s.doyon@videotron.ca>2007-11-08 01:18:13 +0000
committerStéphane Doyon <s.doyon@videotron.ca>2007-11-08 01:18:13 +0000
commit194a66ef83664b0ebd23b9bea031c67c3b80f6ac (patch)
tree9ced9e51f31b1435212ee269b64c0a1a77496465 /firmware
parentc537760179bc321e4c8f94b7dca6e8204beece82 (diff)
Trigger an additional battery level announcement when the level
reaches 5% (FS#8112). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15522 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/powermgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 4d5cf5422f..9d23c6b86f 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -1226,7 +1226,7 @@ void shutdown_hw(void)
levels. This must be called after battery_percent has been updated. */
static void send_battery_level_event(void)
{
- static const int levels[] = { 15, 30, 50, 0 };
+ static const int levels[] = { 5, 15, 30, 50, 0 };
const int *level = levels;
while (*level)
{