summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/export/config/fiiom3k.h2
-rw-r--r--firmware/target/hosted/fiio/usb-fiio.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/firmware/export/config/fiiom3k.h b/firmware/export/config/fiiom3k.h
index 01fc19d542..ebf7117984 100644
--- a/firmware/export/config/fiiom3k.h
+++ b/firmware/export/config/fiiom3k.h
@@ -28,8 +28,6 @@
/* define this if you have a colour LCD */
#define HAVE_LCD_COLOR
-#define HAVE_LCD_ENABLE
-
/* define this if you want album art for this target */
#define HAVE_ALBUMART
diff --git a/firmware/target/hosted/fiio/usb-fiio.c b/firmware/target/hosted/fiio/usb-fiio.c
index 76a0ec5a2b..3084ee0169 100644
--- a/firmware/target/hosted/fiio/usb-fiio.c
+++ b/firmware/target/hosted/fiio/usb-fiio.c
@@ -39,8 +39,14 @@ int usb_detect(void)
return present ? USB_INSERTED : USB_EXTRACTED;
}
+static bool usb_enabled = 0;
+
void usb_enable(bool on)
{
+ if (usb_enabled == on)
+ return;
+
+ usb_enabled = on;
if (on)
{
system ("insmod /lib/modules/3.10.14/kernel/driver/usb/gadget/libcomposite.ko");