forked from len0rd/rockbox
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
This commit is contained in:
parent
04937cb207
commit
74bd14fa72
2 changed files with 5 additions and 6 deletions
|
@ -80,7 +80,11 @@
|
||||||
#define BATTERY_CAPACITY_INC 50 /* capacity increment */
|
#define BATTERY_CAPACITY_INC 50 /* capacity increment */
|
||||||
#define BATTERY_TYPES_COUNT 1 /* only one type */
|
#define BATTERY_TYPES_COUNT 1 /* only one type */
|
||||||
|
|
||||||
|
if MEM < 8
|
||||||
#define CURRENT_NORMAL 145 /* usual current in mA */
|
#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_RECORD 35 /* additional recording current */
|
||||||
#define CURRENT_USB 500 /* usual current in mA in USB mode */
|
#define CURRENT_USB 500 /* usual current in mA in USB mode */
|
||||||
|
|
||||||
|
|
|
@ -371,12 +371,7 @@ static int runcurrent(void)
|
||||||
{
|
{
|
||||||
int current;
|
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;
|
current = CURRENT_NORMAL;
|
||||||
#endif /* MEM == 8 */
|
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
if (usb_inserted()
|
if (usb_inserted()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue