summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-12-29 10:37:47 -0500
committerSolomon Peachy <pizza@shaftnet.org>2019-01-02 05:01:50 +0100
commit7e7ca0c85847e0b7eff094710cc5167df4e852da (patch)
tree74d8535926085b87e627f48cd9bae1309abffe51 /firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
parent35930ddb8d0c704abeb7619d9b6fc59b9dd6b909 (diff)
downloadrockbox-7e7ca0c85847e0b7eff094710cc5167df4e852da.tar.gz
rockbox-7e7ca0c85847e0b7eff094710cc5167df4e852da.zip
Fix Xduoo X3 bootloader build, and silence all warnings.
Also enable USB bootloader mode Change-Id: I73224c2e694b9941993c89a114b48d2a907e0dfb
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.c4
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 @@
* KIND, either express or implied.
*
****************************************************************************/
-
+
#include "config.h"
#include "system.h"
#include "cpu.h"
@@ -86,11 +86,13 @@ bool button_hold(void)
int button_read_device(void)
{
+#ifndef BOOTLOADER
static bool hold_button = false;
bool hold_button_old;
hold_button_old = hold_button;
hold_button = (__gpio_get_pin(PIN_BTN_HOLD) ? true : false);
+#endif
int btn = BUTTON_NONE;
bool gpio_btn = (__gpio_get_pin(PIN_BTN_POWER) ? false : true);