kopia lustrzana https://gitlab.com/eliggett/wfview
Add RC28 PTT LED
rodzic
4bbd06a988
commit
5e6bab9d57
|
@ -223,9 +223,9 @@ void shuttle::runTimer()
|
|||
QTimer::singleShot(25, this, SLOT(runTimer()));
|
||||
}
|
||||
|
||||
#define BIT_CLEAR(a,b) ((a) &= ~(1ULL<<(b)))
|
||||
void shuttle::ledControl(bool on, unsigned char num)
|
||||
{
|
||||
|
||||
QByteArray data(9,0x0);
|
||||
data[0] = 8;
|
||||
data[1] = 0x01;
|
||||
|
|
|
@ -1236,6 +1236,7 @@ void wfmain::setupShuttleDevice()
|
|||
connect(shuttleDev, SIGNAL(jogMinus()), this, SLOT(shortcutStepMinus()));
|
||||
connect(shuttleDev, SIGNAL(doShuttle(bool, unsigned char)), this, SLOT(doShuttle(bool, unsigned char)));
|
||||
connect(shuttleDev, SIGNAL(button(bool, unsigned char)), this, SLOT(buttonControl(bool, unsigned char)));
|
||||
connect(this, SIGNAL(shuttleLed(bool, unsigned char)), shuttleDev, SLOT(ledControl(bool, unsigned char)));
|
||||
shuttleThread->start();
|
||||
}
|
||||
|
||||
|
@ -1250,6 +1251,7 @@ void wfmain::pttToggle(bool status)
|
|||
}
|
||||
|
||||
emit setPTT(status);
|
||||
emit shuttleLed(status, 1);
|
||||
// Start 3 minute timer
|
||||
if (status)
|
||||
pttTimer->start();
|
||||
|
|
1
wfmain.h
1
wfmain.h
|
@ -157,6 +157,7 @@ signals:
|
|||
void sendRigCaps(rigCapabilities caps);
|
||||
void openShuttle();
|
||||
void requestRigState();
|
||||
void shuttleLed(bool, unsigned char);
|
||||
|
||||
private slots:
|
||||
void updateSizes(int tabIndex);
|
||||
|
|
Ładowanie…
Reference in New Issue