diff --git a/include/f1x/openauto/autoapp/UI/SettingsWindow.hpp b/include/f1x/openauto/autoapp/UI/SettingsWindow.hpp
index b529d57..9bb502e 100644
--- a/include/f1x/openauto/autoapp/UI/SettingsWindow.hpp
+++ b/include/f1x/openauto/autoapp/UI/SettingsWindow.hpp
@@ -61,6 +61,7 @@ private slots:
void onStopHotspot();
void syncNTPTime();
void on_pushButtonRescan_clicked();
+ void on_pushButtonAudioTest_clicked();
private slots:
void show_tab1();
diff --git a/src/autoapp/UI/SettingsWindow.cpp b/src/autoapp/UI/SettingsWindow.cpp
index 56c216b..1b75cd4 100644
--- a/src/autoapp/UI/SettingsWindow.cpp
+++ b/src/autoapp/UI/SettingsWindow.cpp
@@ -96,6 +96,7 @@ SettingsWindow::SettingsWindow(configuration::IConfiguration::Pointer configurat
ui_->spinBoxHour->setValue((time_text_hour).toInt());
ui_->spinBoxMinute->setValue((time_text_minute).toInt());
SettingsWindow::on_pushButtonRescan_clicked();
+ ui_->labelTestInProgress->hide();
}
SettingsWindow::~SettingsWindow()
@@ -851,3 +852,13 @@ void f1x::openauto::autoapp::ui::SettingsWindow::on_pushButtonRescan_clicked()
}
}
}
+
+void f1x::openauto::autoapp::ui::SettingsWindow::on_pushButtonAudioTest_clicked()
+{
+ ui_->labelTestInProgress->show();
+ ui_->pushButtonAudioTest->hide();
+ qApp->processEvents();
+ system("/usr/local/bin/crankshaft audio test");
+ ui_->pushButtonAudioTest->show();
+ ui_->labelTestInProgress->hide();
+}
diff --git a/src/autoapp/UI/USBDialog.cpp b/src/autoapp/UI/USBDialog.cpp
index 37a23cd..8b7bfda 100644
--- a/src/autoapp/UI/USBDialog.cpp
+++ b/src/autoapp/UI/USBDialog.cpp
@@ -105,7 +105,7 @@ void f1x::openauto::autoapp::ui::USBDialog::on_pushButtonMount_clicked()
QString mountfulldevicepath = selected.split(" ")[0];
QString mountdevice = mountfulldevicepath.split("/")[2];
system(qPrintable("sudo umount -f " + mountfulldevicepath));
- //system(qPrintable("sudo fuser -km /media/USBDRIVES/" + mountdevice));
+ system(qPrintable("sudo fuser -km /media/USBDRIVES/" + mountdevice));
system(qPrintable("sudo mkdir -p /media/USBDRIVES/" + mountdevice));
system(qPrintable("sudo chmod 777 /media/USBDRIVES/" + mountdevice));
system(qPrintable("sudo mount " + mountfulldevicepath + " /media/USBDRIVES/" + mountdevice));
diff --git a/src/autoapp/UI/settingswindow.ui b/src/autoapp/UI/settingswindow.ui
index 234d33c..7825ba4 100644
--- a/src/autoapp/UI/settingswindow.ui
+++ b/src/autoapp/UI/settingswindow.ui
@@ -7,7 +7,7 @@
0
0
800
- 3096
+ 3156
@@ -1488,6 +1488,108 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 24
+
+
+
+
+ 16777215
+ 24
+
+
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+
+ 0
+ 24
+
+
+
+
+ 16777215
+ 24
+
+
+
+
+ 75
+ true
+
+
+
+ background-color: rgb(78, 154, 6);
+color: rgb(255, 255, 255);
+
+
+ Execute Audio Test - Record 5 secs via mic and playpack
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 24
+
+
+
+
+ 16777215
+ 24
+
+
+
+
+ 75
+ true
+
+
+
+ Test in progresss...
+
+
+ Qt::AlignCenter
+
+
+
+
+
+
@@ -1617,6 +1719,19 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
-
@@ -1670,19 +1785,6 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}
- -
-
-
-
- 0
- 0
-
-
-
-
-
-
-