forked from len0rd/rockbox
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
This commit is contained in:
parent
88f4c11789
commit
8d888cf76e
1 changed files with 16 additions and 0 deletions
|
|
@ -38,6 +38,7 @@
|
||||||
|
|
||||||
#include "splash.h"
|
#include "splash.h"
|
||||||
#include "scrollbar.h"
|
#include "scrollbar.h"
|
||||||
|
#include "led.h"
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
#include "peakmeter.h"
|
#include "peakmeter.h"
|
||||||
/* Image stuff */
|
/* Image stuff */
|
||||||
|
|
@ -662,6 +663,21 @@ static char* get_tag(struct wps_data* wps_data,
|
||||||
}
|
}
|
||||||
break;
|
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 */
|
case 'D': /* Directory path information */
|
||||||
id3 = nid3; /* next song please! */
|
id3 = nid3; /* next song please! */
|
||||||
*flags |= WPS_REFRESH_DYNAMIC;
|
*flags |= WPS_REFRESH_DYNAMIC;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue