summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-01-03 12:08:21 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-01-03 12:08:21 +0000
commit8d888cf76e19568989a2d7d2d7a4bb5d6ea315cc (patch)
treefc4f6ec16e6767fdb35737578258f105bc54abf0 /apps
parent88f4c1178902c5aa700cbcdf6d1973c09ca9a5d0 (diff)
Patch #1381872 by Brandon Low - Add virtual HDD LED to WPS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8299 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/gwps-common.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 7d17eaefab..aa7cb69ab7 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -38,6 +38,7 @@
#include "splash.h"
#include "scrollbar.h"
+#include "led.h"
#ifdef HAVE_LCD_BITMAP
#include "peakmeter.h"
/* Image stuff */
@@ -662,6 +663,21 @@ static char* get_tag(struct wps_data* wps_data,
}
break;
+#if (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD)
+ case 'l': /* VIRTUAL_LED */
+ {
+ switch(tag[1])
+ {
+ case 'h': /* Only one we have so far HDD LED */
+ if(led_read(HZ/2))
+ return "h";
+ else
+ return NULL;
+ }
+ }
+ break;
+#endif
+
case 'D': /* Directory path information */
id3 = nid3; /* next song please! */
*flags |= WPS_REFRESH_DYNAMIC;