summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/powermgmt.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 026bfe47c0..ae8b7445a8 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -105,13 +105,9 @@ int charge_state = 0; /* at the beginning, the charger
105 105
106static int percent_to_volt_charge[11] = /* voltages (centivolt) of 0%, 10%, ... 100% when charging enabled */ 106static int percent_to_volt_charge[11] = /* voltages (centivolt) of 0%, 10%, ... 100% when charging enabled */
107{ 107{
108#ifdef HAVE_LIION
109 /* values guessed, see http://www.seattlerobotics.org/encoder/200210/LiIon2.pdf */ 108 /* values guessed, see http://www.seattlerobotics.org/encoder/200210/LiIon2.pdf */
110 /* until someone measures voltages over a charging cycle */ 109 /* until someone measures voltages over a charging cycle */
111 260, 290, 320, 340, 360, 370, 380, 390, 400, 410, 420 110 476, 544, 551, 556, 561, 564, 566, 576, 582, 584, 585 /* NiMH */
112#else /* NiMH */
113 476, 544, 551, 556, 561, 564, 566, 576, 582, 584, 585
114#endif
115}; 111};
116 112
117void enable_trickle_charge(bool on) 113void enable_trickle_charge(bool on)