From 74aabc8381e9faa221b87b7d2280238d30f2e9c5 Mon Sep 17 00:00:00 2001 From: Marianne Arnold Date: Mon, 25 Jun 2007 20:54:11 +0000 Subject: Make the '%mh' wps tag (to indicate keylock status) available on the Archos targets as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13716 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps-common.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps/gui/gwps-common.c') diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index a66c1aa4b5..fe7e1ed979 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -1293,13 +1293,16 @@ static char *get_token_value(struct gui_wps *gwps, } #endif -#ifdef HAS_BUTTON_HOLD case WPS_TOKEN_MAIN_HOLD: +#ifdef HAS_BUTTON_HOLD if (button_hold()) +#else + if (is_keys_locked()) +#endif /*hold switch or softlock*/ return "h"; else return NULL; -#endif + #ifdef HAS_REMOTE_BUTTON_HOLD case WPS_TOKEN_REMOTE_HOLD: if (remote_button_hold()) -- cgit v1.2.3