We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30be00c commit 58f75efCopy full SHA for 58f75ef
main/src/user/key.c
@@ -22,31 +22,23 @@
22
23
#ifdef CONFIG_ENABLE_SLEEP_KEY
24
static const uint8_t gpio_pin[] = {
25
-#ifdef CONFIG_ENABLE_SLEEP_KEY
26
- CONFIG_SLEEP_KEY_PIN,
27
-#endif
+ CONFIG_SLEEP_KEY_PIN
28
};
29
30
static const uint8_t gpio_val[] = {
31
32
- #ifdef CONFIG_SLEEP_KEY_ACTIVE_LOW
33
- 0,
34
- #else
35
- 1,
36
- #endif
+#ifdef CONFIG_SLEEP_KEY_ACTIVE_LOW
+ 0
+#else
+ 1
37
#endif
38
39
40
static const uint16_t gpio_hold[] = {
41
42
- CONFIG_SLEEP_KEY_HOLD_TIME,
43
+ CONFIG_SLEEP_KEY_HOLD_TIME
44
45
46
static void (*key_handle[])(void) = {
47
48
- sleep_key_handle,
49
+ sleep_key_handle
50
51
52
0 commit comments