summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/powermgmt.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/powermgmt.h b/firmware/powermgmt.h
index f4c772e..884e977 100644
--- a/firmware/powermgmt.h
+++ b/firmware/powermgmt.h
@@ -21,10 +21,18 @@
#ifndef SIMULATOR
-#define BATTERY_LEVEL_SHUTDOWN 450 /* 4.5V */
+#ifdef HAVE_FMADC /* FM Recorder, LiIon */
+#define BATTERY_LEVEL_SHUTDOWN 260 /* 2.60V */
+#define BATTERY_LEVEL_EMPTY 265 /* 2.65V */
+#define BATTERY_LEVEL_DANGEROUS 280 /* 2.80V */
+#define BATTERY_LEVEL_FULL 400 /* 4.00V */
+
+#else /* Recorder, NiCd */
+#define BATTERY_LEVEL_SHUTDOWN 450 /* 4.50V */
#define BATTERY_LEVEL_EMPTY 465 /* 4.65V */
#define BATTERY_LEVEL_DANGEROUS 475 /* 4.75V */
#define BATTERY_LEVEL_FULL 585 /* 5.85V */
+#endif
#define BATTERY_RANGE (BATTERY_LEVEL_FULL - BATTERY_LEVEL_EMPTY)
#define BATTERY_CAPACITY_MAX 2400 /* max. capacity that can be selected in settings menu, min. is always 1500 */