summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/button.c2
-rw-r--r--firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index f2408d891e..58a9ab0b94 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -112,6 +112,7 @@ static int hp_detect_callback(struct timeout *tmo)
112 queue_remove_from_head(&button_queue, id); 112 queue_remove_from_head(&button_queue, id);
113 queue_post(&button_queue, id, 0); 113 queue_post(&button_queue, id, 0);
114 return 0; 114 return 0;
115 /*misc.c:hp_unplug_change*/
115} 116}
116#endif 117#endif
117 118
@@ -125,6 +126,7 @@ static int lo_detect_callback(struct timeout *tmo)
125 queue_remove_from_head(&button_queue, id); 126 queue_remove_from_head(&button_queue, id);
126 queue_post(&button_queue, id, 0); 127 queue_post(&button_queue, id, 0);
127 return 0; 128 return 0;
129 /*misc.c:lo_unplug_change*/
128} 130}
129#endif 131#endif
130 132
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 0db1bada9b..ebf3c64b47 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
@@ -89,10 +89,12 @@ void button_init_device(void)
89 __gpio_as_output(PIN_CHARGE_CON); 89 __gpio_as_output(PIN_CHARGE_CON);
90 90
91 __gpio_as_input(PIN_PH_DECT); 91 __gpio_as_input(PIN_PH_DECT);
92 __gpio_enable_pull(PIN_PH_DECT);
92 /*__gpio_disable_pull(PIN_PH_DECT); // Spurious Detections */ 93 /*__gpio_disable_pull(PIN_PH_DECT); // Spurious Detections */
93 94
94 __gpio_as_input(PIN_LO_DECT); 95 __gpio_as_input(PIN_LO_DECT);
95 __gpio_disable_pull(PIN_LO_DECT); 96 __gpio_enable_pull(PIN_LO_DECT);
97 /*__gpio_disable_pull(PIN_LO_DECT); // Spurious Detections */
96} 98}
97 99
98bool button_hold(void) 100bool button_hold(void)