summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-13 11:38:45 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-13 16:01:55 +0000
commite91f89a410dc4639dbe78f392c11b2a44ff9036a (patch)
tree4ebf78727d2a71508e420f54b0696e2749eef190 /firmware
parentf68463c53e1fe8c292dcb66098a1caf4c688e1d2 (diff)
downloadrockbox-e91f89a410.tar.gz
rockbox-e91f89a410.zip
xduoox3ii: Update battery curve.
Change-Id: I2cc04d696631ba887fa8943d94360f902bf12e85
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config/xduoox3ii.h6
-rw-r--r--firmware/target/hosted/xduoo/powermgmt-xduoo.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/firmware/export/config/xduoox3ii.h b/firmware/export/config/xduoox3ii.h
index 0b886e3af9..c9047eb224 100644
--- a/firmware/export/config/xduoox3ii.h
+++ b/firmware/export/config/xduoox3ii.h
@@ -125,9 +125,11 @@
#define BATTERY_CAPACITY_MAX 2000 /* max. capacity selectable */
#define BATTERY_CAPACITY_INC 0 /* capacity increment */
+#define CURRENT_NORMAL 167 // 2.78mA * 60s
+#define CURRENT_BACKLIGHT 180
+#define CURRENT_MAX_CHG 500 // bursts higher if needed
+
/* ROLO */
#define BOOTFILE_EXT "x3ii"
#define BOOTFILE "rockbox." BOOTFILE_EXT
#define BOOTDIR "/.rockbox"
-
-
diff --git a/firmware/target/hosted/xduoo/powermgmt-xduoo.c b/firmware/target/hosted/xduoo/powermgmt-xduoo.c
index 30001934ba..35d9e45ffc 100644
--- a/firmware/target/hosted/xduoo/powermgmt-xduoo.c
+++ b/firmware/target/hosted/xduoo/powermgmt-xduoo.c
@@ -23,7 +23,7 @@
const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] =
{
- 3470
+ 3443 /* 5% */
};
/* the OF shuts down at this voltage */
@@ -35,7 +35,7 @@ const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
{
- { 3400, 3639, 3697, 3723, 3757, 3786, 3836, 3906, 3980, 4050, 4159 }
+ { 3400, 3498, 3560, 3592, 3624, 3672, 3753, 3840, 3937, 4047, 4189 }
};
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */