summaryrefslogtreecommitdiff
path: root/apps/wps-display.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/wps-display.c')
-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 @@
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