summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-11-08 15:37:39 +0000
committerNils Wallménius <nils@rockbox.org>2007-11-08 15:37:39 +0000
commitda8f854d611f14f6975ac77e118a0e332a8a9f4e (patch)
tree5ed67faf9dc823eb8759546b73d7795b5fd7929d /firmware/powermgmt.c
parent6e8ee408bfbe2e59e399e395d5b1f78208987906 (diff)
downloadrockbox-da8f854d611f14f6975ac77e118a0e332a8a9f4e.tar.gz
rockbox-da8f854d611f14f6975ac77e118a0e332a8a9f4e.zip
No need to have this variable for targets that don't use it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15534 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 9d23c6b86f..54e7592987 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -240,7 +240,11 @@ static unsigned int battery_millivolts;/* filtered battery voltage, millivolts *
240/* battery level (0-100%) of this minute, updated once per minute */ 240/* battery level (0-100%) of this minute, updated once per minute */
241static int battery_percent = -1; 241static int battery_percent = -1;
242static int battery_capacity = BATTERY_CAPACITY_DEFAULT; /* default value, mAh */ 242static int battery_capacity = BATTERY_CAPACITY_DEFAULT; /* default value, mAh */
243#if BATTERY_TYPES_COUNT > 1
243static int battery_type = 0; 244static int battery_type = 0;
245#else
246#define battery_type 0
247#endif
244 248
245/* Power history: power_history[0] is the newest sample */ 249/* Power history: power_history[0] is the newest sample */
246unsigned short power_history[POWER_HISTORY_LEN]; 250unsigned short power_history[POWER_HISTORY_LEN];