diff options
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c index 16d5aab782..be02167a5d 100644 --- a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c +++ b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c | |||
@@ -18,7 +18,7 @@ | |||
18 | * KIND, either express or implied. | 18 | * KIND, either express or implied. |
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | #include "config.h" | 22 | #include "config.h" |
23 | #include "system.h" | 23 | #include "system.h" |
24 | #include "cpu.h" | 24 | #include "cpu.h" |
@@ -86,11 +86,13 @@ bool button_hold(void) | |||
86 | 86 | ||
87 | int button_read_device(void) | 87 | int button_read_device(void) |
88 | { | 88 | { |
89 | #ifndef BOOTLOADER | ||
89 | static bool hold_button = false; | 90 | static bool hold_button = false; |
90 | bool hold_button_old; | 91 | bool hold_button_old; |
91 | 92 | ||
92 | hold_button_old = hold_button; | 93 | hold_button_old = hold_button; |
93 | hold_button = (__gpio_get_pin(PIN_BTN_HOLD) ? true : false); | 94 | hold_button = (__gpio_get_pin(PIN_BTN_HOLD) ? true : false); |
95 | #endif | ||
94 | 96 | ||
95 | int btn = BUTTON_NONE; | 97 | int btn = BUTTON_NONE; |
96 | bool gpio_btn = (__gpio_get_pin(PIN_BTN_POWER) ? false : true); | 98 | bool gpio_btn = (__gpio_get_pin(PIN_BTN_POWER) ? false : true); |