summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/stm3210e-eval/src/up_pmbuttons.c')
-rw-r--r--nuttx/configs/stm3210e-eval/src/up_pmbuttons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c b/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c
index ab7fd549e..0a214d709 100644
--- a/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c
+++ b/nuttx/configs/stm3210e-eval/src/up_pmbuttons.c
@@ -53,7 +53,7 @@
#include "stm32_pm.h"
#include "stm3210e-internal.h"
-#if defined(CONFIG_PM) && defined(CONFIG_IDLE_CUSTOM)
+#if defined(CONFIG_PM) && defined(CONFIG_IDLE_CUSTOM) && defined(CONFIG_PM_BUTTONS)
/****************************************************************************
* Pre-processor Definitions
@@ -406,4 +406,4 @@ int i;
#endif
}
-#endif /* defined(CONFIG_PM) && defined(CONFIG_IDLE_CUSTOM) */
+#endif /* defined(CONFIG_PM) && defined(CONFIG_IDLE_CUSTOM) && defined(CONFIG_PM_BUTTONS) */