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
This commit is contained in:
Stéphane Doyon 2007-11-08 01:18:13 +00:00
parent c537760179
commit 194a66ef83

View file

@ -1226,7 +1226,7 @@ void shutdown_hw(void)
levels. This must be called after battery_percent has been updated. */ levels. This must be called after battery_percent has been updated. */
static void send_battery_level_event(void) 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; const int *level = levels;
while (*level) while (*level)
{ {