1
0
Fork 0
forked from len0rd/rockbox

Fix red builds

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9091 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2006-03-18 09:34:58 +00:00
parent 96e4946d9d
commit b7c7df788e

View file

@ -1341,7 +1341,6 @@ bool view_battery(void)
lcd_puts(0, 6, buf); lcd_puts(0, 6, buf);
lcd_puts(0, 7, power_message); lcd_puts(0, 7, power_message);
#else /* !HAVE_CHARGE_CTRL */ #else /* !HAVE_CHARGE_CTRL */
#if defined IPOD_ARCH
#if defined APPLE_IPODNANO || defined APPLE_IPODVIDEO #if defined APPLE_IPODNANO || defined APPLE_IPODVIDEO
int usb_pwr = (GPIOL_INPUT_VAL & 0x10)?true:false; int usb_pwr = (GPIOL_INPUT_VAL & 0x10)?true:false;
int ext_pwr = (GPIOL_INPUT_VAL & 0x08)?false:true; int ext_pwr = (GPIOL_INPUT_VAL & 0x08)?false:true;
@ -1364,13 +1363,7 @@ bool view_battery(void)
snprintf(buf, 30, "Headphone: %s", snprintf(buf, 30, "Headphone: %s",
headphone ? "connected" : "disconnected"); headphone ? "connected" : "disconnected");
lcd_puts(0, 7, buf); lcd_puts(0, 7, buf);
#else #else
/* other ipod devices go here */
snprintf(buf, 30, "Charger: %s",
charger_inserted() ? "present" : "absent");
lcd_puts(0, 3, buf);
#endif
#elif
snprintf(buf, 30, "Charger: %s", snprintf(buf, 30, "Charger: %s",
charger_inserted() ? "present" : "absent"); charger_inserted() ? "present" : "absent");
lcd_puts(0, 3, buf); lcd_puts(0, 3, buf);