summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2010-03-16 16:03:48 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2010-03-16 16:03:48 +0000
commit74bd14fa72e15be3b480d619c7b8ae60b7ab21b0 (patch)
treec7939031a2a3e29d2edba5a2608c52fade81c305
parent04937cb20760ee38237c9d016f87a4c2c8d390b5 (diff)
downloadrockbox-74bd14fa72e15be3b480d619c7b8ae60b7ab21b0.zip
rockbox-74bd14fa72e15be3b480d619c7b8ae60b7ab21b0.tar.gz
rockbox-74bd14fa72e15be3b480d619c7b8ae60b7ab21b0.tar.bz2
rockbox-74bd14fa72e15be3b480d619c7b8ae60b7ab21b0.tar.xz
Remove some old archos code that caused runtime estimation to be off on AMS players while not actually working on Archos.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25220 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/config/archosrecorder.h6
-rw-r--r--firmware/powermgmt.c5
2 files changed, 5 insertions, 6 deletions
diff --git a/firmware/export/config/archosrecorder.h b/firmware/export/config/archosrecorder.h
index ef9f523..505a039 100644
--- a/firmware/export/config/archosrecorder.h
+++ b/firmware/export/config/archosrecorder.h
@@ -80,7 +80,11 @@
#define BATTERY_CAPACITY_INC 50 /* capacity increment */
#define BATTERY_TYPES_COUNT 1 /* only one type */
-#define CURRENT_NORMAL 145 /* usual current in mA */
+if MEM < 8
+ #define CURRENT_NORMAL 145 /* usual current in mA */
+#else
+ #define CURRENT_NORMAL 145 *100 / 122 /* assuming 192 kbps, the running time is 22% longer with 8MB */
+#endif
#define CURRENT_RECORD 35 /* additional recording current */
#define CURRENT_USB 500 /* usual current in mA in USB mode */
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 74564bd..f8c3995 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -371,12 +371,7 @@ static int runcurrent(void)
{
int current;
-#if MEM == 8 && !(defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM))
- /* assuming 192 kbps, the running time is 22% longer with 8MB */
- current = CURRENT_NORMAL*100 / 122;
-#else
current = CURRENT_NORMAL;
-#endif /* MEM == 8 */
#ifndef BOOTLOADER
if (usb_inserted()