summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config/xduoox20.h3
-rw-r--r--firmware/export/config/xduoox3ii.h3
-rw-r--r--firmware/target/hosted/xduoo/button-target.h2
-rw-r--r--firmware/target/hosted/xduoo/button-xduoo.c34
4 files changed, 0 insertions, 42 deletions
diff --git a/firmware/export/config/xduoox20.h b/firmware/export/config/xduoox20.h
index 4a5b63bf38..62b2d58582 100644
--- a/firmware/export/config/xduoox20.h
+++ b/firmware/export/config/xduoox20.h
@@ -73,9 +73,6 @@
/* KeyPad configuration for plugins */
#define CONFIG_KEYPAD XDUOO_X20_PAD
-/* Define this if a programmable hotkey is mapped */
-#define HAVE_HOTKEY
-
/* define this if the target has volume keys which can be used in the lists */
#define HAVE_VOLUME_IN_LIST
diff --git a/firmware/export/config/xduoox3ii.h b/firmware/export/config/xduoox3ii.h
index e2066e453c..893fcc5e51 100644
--- a/firmware/export/config/xduoox3ii.h
+++ b/firmware/export/config/xduoox3ii.h
@@ -73,9 +73,6 @@
/* KeyPad configuration for plugins */
#define CONFIG_KEYPAD XDUOO_X3II_PAD
-/* Define this if a programmable hotkey is mapped */
-#define HAVE_HOTKEY
-
/* define this if the target has volume keys which can be used in the lists */
#define HAVE_VOLUME_IN_LIST
diff --git a/firmware/target/hosted/xduoo/button-target.h b/firmware/target/hosted/xduoo/button-target.h
index 6cca5c22a0..ac77a7da7d 100644
--- a/firmware/target/hosted/xduoo/button-target.h
+++ b/firmware/target/hosted/xduoo/button-target.h
@@ -20,8 +20,6 @@
#ifndef _BUTTON_TARGET_H_
#define _BUTTON_TARGET_H_
-#define HAS_BUTTON_HOLD
-
/* Main unit's buttons */
#define BUTTON_POWER 0x00000001
#define BUTTON_HOME 0x00000002
diff --git a/firmware/target/hosted/xduoo/button-xduoo.c b/firmware/target/hosted/xduoo/button-xduoo.c
index 605cd18736..99b0908378 100644
--- a/firmware/target/hosted/xduoo/button-xduoo.c
+++ b/firmware/target/hosted/xduoo/button-xduoo.c
@@ -38,14 +38,6 @@
#include "backlight-target.h"
#include "xduoolinux_codec.h"
-static bool soft_hold = false;
-#ifndef BOOTLOADER
-static unsigned soft_hold_counter = 0;
-#define SOFT_HOLD_BUTTON BUTTON_POWER
-#define SOFT_HOLD_CNTMAX_1 (HZ)
-#define SOFT_HOLD_CNTMAX_2 (HZ*2)
-#endif
-
#define NR_POLL_DESC 3
static struct pollfd poll_fds[NR_POLL_DESC];
@@ -141,27 +133,6 @@ int button_read_device(void)
}
}
-#ifndef BOOTLOADER
- if (button_bitmap == SOFT_HOLD_BUTTON) {
- soft_hold_counter++;
- if (soft_hold_counter == SOFT_HOLD_CNTMAX_1) {
- soft_hold = !soft_hold;
- backlight_hold_changed(soft_hold);
- }
- else
- if (soft_hold_counter == SOFT_HOLD_CNTMAX_2) {
- soft_hold = false;
- backlight_hold_changed(soft_hold);
- }
- } else {
- soft_hold_counter = 0;
- }
-
- if((soft_hold) && (button_bitmap != SOFT_HOLD_BUTTON)) {
- return BUTTON_NONE;
- }
-#endif
-
return button_bitmap;
}
@@ -187,8 +158,3 @@ void button_close_device(void)
close(poll_fds[i].fd);
}
}
-
-bool button_hold(void)
-{
- return soft_hold;
-}