diff options
Diffstat (limited to 'apps/wps.c')
-rw-r--r-- | apps/wps.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/wps.c b/apps/wps.c index 84f862de9c..ca6e394881 100644 --- a/apps/wps.c +++ b/apps/wps.c | |||
@@ -750,10 +750,20 @@ long wps_show(void) | |||
750 | /* stop and exit wps */ | 750 | /* stop and exit wps */ |
751 | #ifdef WPS_EXIT | 751 | #ifdef WPS_EXIT |
752 | case WPS_EXIT: | 752 | case WPS_EXIT: |
753 | #ifdef WPS_RC_EXIT | 753 | # ifdef WPS_EXIT_PRE |
754 | if (lastbutton != WPS_EXIT_PRE) | ||
755 | break; | ||
756 | # endif | ||
757 | exit = true; | ||
758 | |||
759 | # ifdef WPS_RC_EXIT | ||
754 | case WPS_RC_EXIT: | 760 | case WPS_RC_EXIT: |
755 | #endif | 761 | # ifdef WPS_RC_EXIT_PRE |
762 | if (lastbutton != WPS_RC_EXIT_PRE) | ||
763 | break; | ||
764 | # endif | ||
756 | exit = true; | 765 | exit = true; |
766 | # endif | ||
757 | break; | 767 | break; |
758 | #endif | 768 | #endif |
759 | 769 | ||