diff options
Diffstat (limited to 'firmware/powermgmt.h')
-rw-r--r-- | firmware/powermgmt.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/powermgmt.h b/firmware/powermgmt.h index f4c772e221..884e9772e5 100644 --- a/firmware/powermgmt.h +++ b/firmware/powermgmt.h | |||
@@ -21,10 +21,18 @@ | |||
21 | 21 | ||
22 | #ifndef SIMULATOR | 22 | #ifndef SIMULATOR |
23 | 23 | ||
24 | #define BATTERY_LEVEL_SHUTDOWN 450 /* 4.5V */ | 24 | #ifdef HAVE_FMADC /* FM Recorder, LiIon */ |
25 | #define BATTERY_LEVEL_SHUTDOWN 260 /* 2.60V */ | ||
26 | #define BATTERY_LEVEL_EMPTY 265 /* 2.65V */ | ||
27 | #define BATTERY_LEVEL_DANGEROUS 280 /* 2.80V */ | ||
28 | #define BATTERY_LEVEL_FULL 400 /* 4.00V */ | ||
29 | |||
30 | #else /* Recorder, NiCd */ | ||
31 | #define BATTERY_LEVEL_SHUTDOWN 450 /* 4.50V */ | ||
25 | #define BATTERY_LEVEL_EMPTY 465 /* 4.65V */ | 32 | #define BATTERY_LEVEL_EMPTY 465 /* 4.65V */ |
26 | #define BATTERY_LEVEL_DANGEROUS 475 /* 4.75V */ | 33 | #define BATTERY_LEVEL_DANGEROUS 475 /* 4.75V */ |
27 | #define BATTERY_LEVEL_FULL 585 /* 5.85V */ | 34 | #define BATTERY_LEVEL_FULL 585 /* 5.85V */ |
35 | #endif | ||
28 | 36 | ||
29 | #define BATTERY_RANGE (BATTERY_LEVEL_FULL - BATTERY_LEVEL_EMPTY) | 37 | #define BATTERY_RANGE (BATTERY_LEVEL_FULL - BATTERY_LEVEL_EMPTY) |
30 | #define BATTERY_CAPACITY_MAX 2400 /* max. capacity that can be selected in settings menu, min. is always 1500 */ | 38 | #define BATTERY_CAPACITY_MAX 2400 /* max. capacity that can be selected in settings menu, min. is always 1500 */ |