diff options
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r-- | apps/gui/gwps-common.c | 7 |
1 files changed, 5 insertions, 2 deletions
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, | |||
1293 | } | 1293 | } |
1294 | #endif | 1294 | #endif |
1295 | 1295 | ||
1296 | #ifdef HAS_BUTTON_HOLD | ||
1297 | case WPS_TOKEN_MAIN_HOLD: | 1296 | case WPS_TOKEN_MAIN_HOLD: |
1297 | #ifdef HAS_BUTTON_HOLD | ||
1298 | if (button_hold()) | 1298 | if (button_hold()) |
1299 | #else | ||
1300 | if (is_keys_locked()) | ||
1301 | #endif /*hold switch or softlock*/ | ||
1299 | return "h"; | 1302 | return "h"; |
1300 | else | 1303 | else |
1301 | return NULL; | 1304 | return NULL; |
1302 | #endif | 1305 | |
1303 | #ifdef HAS_REMOTE_BUTTON_HOLD | 1306 | #ifdef HAS_REMOTE_BUTTON_HOLD |
1304 | case WPS_TOKEN_REMOTE_HOLD: | 1307 | case WPS_TOKEN_REMOTE_HOLD: |
1305 | if (remote_button_hold()) | 1308 | if (remote_button_hold()) |