From da8f854d611f14f6975ac77e118a0e332a8a9f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Thu, 8 Nov 2007 15:37:39 +0000 Subject: [PATCH] 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 --- firmware/powermgmt.c | 4 ++++ 1 file changed, 4 insertions(+) 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 * /* battery level (0-100%) of this minute, updated once per minute */ static int battery_percent = -1; static int battery_capacity = BATTERY_CAPACITY_DEFAULT; /* default value, mAh */ +#if BATTERY_TYPES_COUNT > 1 static int battery_type = 0; +#else +#define battery_type 0 +#endif /* Power history: power_history[0] is the newest sample */ unsigned short power_history[POWER_HISTORY_LEN];