summaryrefslogtreecommitdiff
path: root/firmware/export/powermgmt.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/powermgmt.h')
-rw-r--r--firmware/export/powermgmt.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h
index 6ea4820b40..e3df2ebd15 100644
--- a/firmware/export/powermgmt.h
+++ b/firmware/export/powermgmt.h
@@ -24,20 +24,25 @@
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#define BATTERY_CAPACITY_MIN 2200
28#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable in settings */
27#elif CONFIG_BATTERY == BATT_3AAA_ALKALINE /* Ondio, Alkalines */ 29#elif CONFIG_BATTERY == BATT_3AAA_ALKALINE /* Ondio, Alkalines */
28#define BATTERY_LEVEL_SHUTDOWN 250 /* 2.50V */ 30#define BATTERY_LEVEL_SHUTDOWN 250 /* 2.50V */
29#define BATTERY_LEVEL_EMPTY 260 /* 2.60V */ 31#define BATTERY_LEVEL_EMPTY 260 /* 2.60V */
30#define BATTERY_LEVEL_DANGEROUS 270 /* 2.80V */ 32#define BATTERY_LEVEL_DANGEROUS 270 /* 2.80V */
31#define BATTERY_LEVEL_FULL 450 /* 4.50V */ 33#define BATTERY_LEVEL_FULL 450 /* 4.50V */
34#define BATTERY_CAPACITY_MIN 1000
35#define BATTERY_CAPACITY_MAX 2000 /* max. capacity selectable in settings */
32#else /* Recorder, NiMH */ 36#else /* Recorder, NiMH */
33#define BATTERY_LEVEL_SHUTDOWN 450 /* 4.50V */ 37#define BATTERY_LEVEL_SHUTDOWN 450 /* 4.50V */
34#define BATTERY_LEVEL_EMPTY 465 /* 4.65V */ 38#define BATTERY_LEVEL_EMPTY 465 /* 4.65V */
35#define BATTERY_LEVEL_DANGEROUS 475 /* 4.75V */ 39#define BATTERY_LEVEL_DANGEROUS 475 /* 4.75V */
36#define BATTERY_LEVEL_FULL 585 /* 5.85V */ 40#define BATTERY_LEVEL_FULL 585 /* 5.85V */
41#define BATTERY_CAPACITY_MIN 1500
42#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable in settings */
37#endif 43#endif
38 44
39#define BATTERY_RANGE (BATTERY_LEVEL_FULL - BATTERY_LEVEL_EMPTY) 45#define BATTERY_RANGE (BATTERY_LEVEL_FULL - BATTERY_LEVEL_EMPTY)
40#define BATTERY_CAPACITY_MAX 3200 /* max. capacity that can be selected in settings menu, min. is always 1500 */
41 46
42#define POWER_HISTORY_LEN 2*60 /* 2 hours of samples, one per minute */ 47#define POWER_HISTORY_LEN 2*60 /* 2 hours of samples, one per minute */
43#define POWER_AVG_N 4 /* how many samples to take for each measurement */ 48#define POWER_AVG_N 4 /* how many samples to take for each measurement */