diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2004-10-15 18:52:54 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2004-10-15 18:52:54 +0000 |
| commit | 672305f0a1fe8e423904f95d5cb22aea68ff4c62 (patch) | |
| tree | 82d2af855811058136a1d11b22ab6a386224abec | |
| parent | c4f96930f03db6c715f71dcf964217179cc698d4 (diff) | |
| download | rockbox-672305f0a1fe8e423904f95d5cb22aea68ff4c62.zip rockbox-672305f0a1fe8e423904f95d5cb22aea68ff4c62.tar.gz rockbox-672305f0a1fe8e423904f95d5cb22aea68ff4c62.tar.bz2 rockbox-672305f0a1fe8e423904f95d5cb22aea68ff4c62.tar.xz | |
Another small adjustment for Ondio: Don't adjust initial battery level for non-existing HD activity
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5287 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/powermgmt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 9cd8881..35b311a 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -227,12 +227,15 @@ void battery_level_update(void) /* always use the decharge table */ #endif +#ifndef HAVE_MMC /* this adjustment is only needed for HD based */ if (battery_level_cached == -1) { /* first run of this procedure */ /* the battery voltage is usually a little lower directly after turning on, because the disk was used heavily raise it by 5 % */ battery_level_cached = (level > 95) ? 100 : level + 5; } - else { + else +#endif + { /* the level is allowed to be -1 of the last value when usb not connected and to be -3 of the last value when usb is connected */ if (usb_inserted()) { |