From 9f4f5dbc2683a17159aac153aaccce023fc5dab3 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 6 Sep 2009 16:54:04 +0000 Subject: [PATCH] Make the e200 compile the vled for the sim... other targets are probably doing the same thing so find out which.. commit will be immediatly followed to fixd red git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22642 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_parser.c | 4 +++- firmware/export/config-e200.h | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 5ecbda1315..bc0abba786 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -22,6 +22,7 @@ #include #include #include +#include "config.h" #include "file.h" #include "misc.h" #include "plugin.h" @@ -272,9 +273,10 @@ static const struct wps_tag all_tags[] = { #if (CONFIG_CODEC != MAS3507D) { WPS_TOKEN_SOUND_PITCH, "Sp", WPS_REFRESH_DYNAMIC, NULL }, #endif - #if (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD) { WPS_TOKEN_VLED_HDD, "lh", WPS_REFRESH_DYNAMIC, NULL }, +#else + #error why doesnt this target enable vled? #endif { WPS_TOKEN_MAIN_HOLD, "mh", WPS_REFRESH_DYNAMIC, NULL }, diff --git a/firmware/export/config-e200.h b/firmware/export/config-e200.h index adae8a211d..f130a63eae 100644 --- a/firmware/export/config-e200.h +++ b/firmware/export/config-e200.h @@ -185,8 +185,6 @@ #define USB_VENDOR_ID 0x0781 #define USB_PRODUCT_ID 0x7421 -/* Virtual LED (icon) */ -#define CONFIG_LED LED_VIRTUAL /* Define this if you have adjustable CPU frequency */ #define HAVE_ADJUSTABLE_CPU_FREQ @@ -202,8 +200,12 @@ #endif /* SIMULATOR */ + /** Port-specific settings **/ +/* Virtual LED (icon) */ +#define CONFIG_LED LED_VIRTUAL + /* Main LCD backlight brightness range and defaults */ #define MIN_BRIGHTNESS_SETTING 1 #define MAX_BRIGHTNESS_SETTING 12