diff options
-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 | ||