summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-09-09 07:07:44 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-09-09 07:07:44 +0000
commitc2779e5ef3740781c30b8c2b5d9f876709b091d9 (patch)
treeecc6a848919a1e45a0b1f7cd686f0ba1dc416551 /apps
parent34aa5c20cce8991993c718e73ddb4ba8d8d5252b (diff)
downloadrockbox-c2779e5ef3740781c30b8c2b5d9f876709b091d9.tar.gz
rockbox-c2779e5ef3740781c30b8c2b5d9f876709b091d9.zip
Patch #1285659 by Stephan Wezel, adds the %bp tag to the WPS (external power adapter)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7501 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/wps-display.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index b5f95a43d7..1794e53549 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -41,6 +41,7 @@
#include "mas.h"
#include "lang.h"
#include "powermgmt.h"
+#include "power.h"
#include "sprintf.h"
#include "backlight.h"
#include "button.h"
@@ -791,6 +792,14 @@ static char* get_tag(struct mp3entry* cid3,
strncpy(buf, "?h ?m", buf_size);
return buf;
}
+
+ case 'p': /* External power plugged in? */
+ {
+ if(charger_inserted())
+ return "p";
+ else
+ return NULL;
+ }
}
break;