From d295a07eac69d56907c990b0a4525e5f8e2a0f9a Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Sun, 9 May 2021 17:09:16 -0400 Subject: [PATCH] Abandoned USB prompt feature as it would prompt to connect after a fresh reboot even if no USB cable is plugged in. Mainly due to fsl-usb2-udc quirks. --- mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index b1da925..fa58a36 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -377,7 +377,11 @@ MainWindow::MainWindow(QWidget *parent) ; } } ); - usbmsPrompt->start(); + // **** FEATURE WARNING **** + // Due to the fsl-usb2-udc/gadget/suspended file which really only changes after a real unplugging of the USB port, further development on this feature is no longer possible and is abandoned unless a fix is found. + // Problem encontered: it would prompt to connect after a fresh reboot even if no USB cable is plugged in. + // usbmsPrompt->start(); + // **** FEATURE WARNING **** // We set the brightness level saved in the config file int brightness_value = brightness_checkconfig(".config/03-brightness/config");