diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/powermgmt.h | 6 | ||||
-rw-r--r-- | firmware/powermgmt.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index 1a54006a7d..6ea4820b40 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h | |||
@@ -24,7 +24,11 @@ | |||
24 | #define BATTERY_LEVEL_EMPTY 265 /* 2.65V */ | 24 | #define BATTERY_LEVEL_EMPTY 265 /* 2.65V */ |
25 | #define BATTERY_LEVEL_DANGEROUS 280 /* 2.80V */ | 25 | #define BATTERY_LEVEL_DANGEROUS 280 /* 2.80V */ |
26 | #define BATTERY_LEVEL_FULL 400 /* 4.00V */ | 26 | #define BATTERY_LEVEL_FULL 400 /* 4.00V */ |
27 | 27 | #elif CONFIG_BATTERY == BATT_3AAA_ALKALINE /* Ondio, Alkalines */ | |
28 | #define BATTERY_LEVEL_SHUTDOWN 250 /* 2.50V */ | ||
29 | #define BATTERY_LEVEL_EMPTY 260 /* 2.60V */ | ||
30 | #define BATTERY_LEVEL_DANGEROUS 270 /* 2.80V */ | ||
31 | #define BATTERY_LEVEL_FULL 450 /* 4.50V */ | ||
28 | #else /* Recorder, NiMH */ | 32 | #else /* Recorder, NiMH */ |
29 | #define BATTERY_LEVEL_SHUTDOWN 450 /* 4.50V */ | 33 | #define BATTERY_LEVEL_SHUTDOWN 450 /* 4.50V */ |
30 | #define BATTERY_LEVEL_EMPTY 465 /* 4.65V */ | 34 | #define BATTERY_LEVEL_EMPTY 465 /* 4.65V */ |
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index e7486635d0..5648e52dab 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -95,6 +95,9 @@ static const int percent_to_volt_decharge[11] = | |||
95 | #if CONFIG_BATTERY == BATT_LIION2200 | 95 | #if CONFIG_BATTERY == BATT_LIION2200 |
96 | /* measured values */ | 96 | /* measured values */ |
97 | 260, 285, 295, 303, 311, 320, 330, 345, 360, 380, 400 | 97 | 260, 285, 295, 303, 311, 320, 330, 345, 360, 380, 400 |
98 | #elif CONFIG_BATTERY == BATT_3AAA_ALKALINE | ||
99 | /* taken from a textbook alkaline discharge graph, not measured */ | ||
100 | 270, 303, 324, 336, 348, 357, 366, 378, 390, 408, 450 | ||
98 | #else /* NiMH */ | 101 | #else /* NiMH */ |
99 | /* original values were taken directly after charging, but it should show | 102 | /* original values were taken directly after charging, but it should show |
100 | 100% after turning off the device for some hours, too */ | 103 | 100% after turning off the device for some hours, too */ |