summaryrefslogtreecommitdiffstats
path: root/firmware/target
diff options
context:
space:
mode:
authorRobert Kukla <roolku@rockbox.org>2008-01-13 12:35:10 +0000
committerRobert Kukla <roolku@rockbox.org>2008-01-13 12:35:10 +0000
commitbf6d5cce683b94933ea013f7b0bfc5ec60a7fe16 (patch)
treee3debdabd8351dbc1cc8b2e88b9b0be7c4361541 /firmware/target
parent66ad9b1c08db1b33d44072ffe1730825d9fb7839 (diff)
downloadrockbox-bf6d5cce683b94933ea013f7b0bfc5ec60a7fe16.tar.gz
rockbox-bf6d5cce683b94933ea013f7b0bfc5ec60a7fe16.zip
m:robe 100: tweaks for more reliable shutdown
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16074 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/olympus/mrobe-100/powermgmt-mr100.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/olympus/mrobe-100/powermgmt-mr100.c b/firmware/target/arm/olympus/mrobe-100/powermgmt-mr100.c
index 6101b3eb01..4bb60c3014 100644
--- a/firmware/target/arm/olympus/mrobe-100/powermgmt-mr100.c
+++ b/firmware/target/arm/olympus/mrobe-100/powermgmt-mr100.c
@@ -49,13 +49,13 @@ const unsigned short percent_to_volt_charge[11] =
};
#endif /* CONFIG_CHARGING */
-#define BATTERY_SCALE_FACTOR 6052
+#define BATTERY_SCALE_FACTOR 6003
/* full-scale ADC readout (2^10) in millivolt */
/* adc readout
* max with charger connected: 690
* max fully charged: 682
- * min just before shutdown:
+ * min just before shutdown: 570
*/
/* Returns battery voltage from ADC [millivolts] */
@@ -63,5 +63,5 @@ unsigned int battery_adc_voltage(void)
{
/* work around the inital (false) high readout */
int readout=adc_read(ADC_UNREG_POWER);
- return (readout>700) ? 3990 : (readout * BATTERY_SCALE_FACTOR) >> 10;
+ return (readout>700) ? 3480 : (readout * BATTERY_SCALE_FACTOR) >> 10;
}