summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/xduoo/button-xduoo.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/xduoo/button-xduoo.c')
-rw-r--r--firmware/target/hosted/xduoo/button-xduoo.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/target/hosted/xduoo/button-xduoo.c b/firmware/target/hosted/xduoo/button-xduoo.c
index 99b0908378..503e49e001 100644
--- a/firmware/target/hosted/xduoo/button-xduoo.c
+++ b/firmware/target/hosted/xduoo/button-xduoo.c
@@ -138,15 +138,22 @@ int button_read_device(void)
bool headphones_inserted(void)
{
+#ifdef BOOTLOADER
+ int ps = 0;
+#else
int ps = xduoo_get_outputs();
+#endif
return (ps == 2 || ps == 3);
}
bool lineout_inserted(void)
{
+#ifdef BOOTLOADER
+ int ps = 0;
+#else
int ps = xduoo_get_outputs();
-
+#endif
return (ps == 1);
}