diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-09-09 07:07:44 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-09-09 07:07:44 +0000 |
commit | c2779e5ef3740781c30b8c2b5d9f876709b091d9 (patch) | |
tree | ecc6a848919a1e45a0b1f7cd686f0ba1dc416551 | |
parent | 34aa5c20cce8991993c718e73ddb4ba8d8d5252b (diff) | |
download | rockbox-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
-rw-r--r-- | apps/wps-display.c | 9 | ||||
-rw-r--r-- | docs/CREDITS | 1 |
2 files changed, 10 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 @@ | |||
41 | #include "mas.h" | 41 | #include "mas.h" |
42 | #include "lang.h" | 42 | #include "lang.h" |
43 | #include "powermgmt.h" | 43 | #include "powermgmt.h" |
44 | #include "power.h" | ||
44 | #include "sprintf.h" | 45 | #include "sprintf.h" |
45 | #include "backlight.h" | 46 | #include "backlight.h" |
46 | #include "button.h" | 47 | #include "button.h" |
@@ -791,6 +792,14 @@ static char* get_tag(struct mp3entry* cid3, | |||
791 | strncpy(buf, "?h ?m", buf_size); | 792 | strncpy(buf, "?h ?m", buf_size); |
792 | return buf; | 793 | return buf; |
793 | } | 794 | } |
795 | |||
796 | case 'p': /* External power plugged in? */ | ||
797 | { | ||
798 | if(charger_inserted()) | ||
799 | return "p"; | ||
800 | else | ||
801 | return NULL; | ||
802 | } | ||
794 | } | 803 | } |
795 | break; | 804 | break; |
796 | 805 | ||
diff --git a/docs/CREDITS b/docs/CREDITS index 8ecabe347e..5db682eb72 100644 --- a/docs/CREDITS +++ b/docs/CREDITS | |||
@@ -134,3 +134,4 @@ Naftali Goldstein | |||
134 | David Dent | 134 | David Dent |
135 | Frank Dischner | 135 | Frank Dischner |
136 | Liberman Shachar | 136 | Liberman Shachar |
137 | Stephan Wezel | ||