From 3461a0e5e51b68517561cbdfbedd19141725f7c6 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Fri, 10 Feb 2023 18:10:32 +0000 Subject: [PATCH] Correct usbMutex --- controllersetup.cpp | 9 ++++++--- controllersetup.h | 1 + usbcontroller.cpp | 29 +++++++++++++++++++++++++---- usbcontroller.h | 6 ++++-- wfmain.cpp | 1 + wfviewtypes.h | 2 +- 6 files changed, 38 insertions(+), 10 deletions(-) diff --git a/controllersetup.cpp b/controllersetup.cpp index 336a3cb..fc0da28 100644 --- a/controllersetup.cpp +++ b/controllersetup.cpp @@ -122,7 +122,6 @@ void controllerSetup::mousePressed(QPoint p) offEvent->hide(); knobEvent->hide(); } - } void controllerSetup::onEventIndexChanged(int index) { @@ -133,7 +132,7 @@ void controllerSetup::onEventIndexChanged(int index) { currentButton->onCommand = &commands->at(onEvent->currentData().toInt()); currentButton->onText->setPlainText(currentButton->onCommand->text); } - + emit programButtons(); // Signal that any button programming on the device should be completed. } @@ -144,6 +143,7 @@ void controllerSetup::offEventIndexChanged(int index) { currentButton->offCommand = &commands->at(offEvent->currentData().toInt()); currentButton->offText->setPlainText(currentButton->offCommand->text); } + emit programButtons(); // Signal that any button programming on the device should be completed. } void controllerSetup::knobEventIndexChanged(int index) { @@ -153,6 +153,7 @@ void controllerSetup::knobEventIndexChanged(int index) { currentKnob->command = &commands->at(knobEvent->currentData().toInt()); currentKnob->text->setPlainText(currentKnob->command->text); } + emit programButtons(); // Signal that any button programming on the device should be completed. } @@ -163,7 +164,7 @@ void controllerSetup::newDevice(unsigned char devType, QVector