kopia lustrzana https://gitlab.com/eliggett/wfview
Make ptt react correctly
rodzic
da71bb3bc3
commit
32e662237b
|
@ -705,13 +705,15 @@ void usbController::receiveSensitivity(int val)
|
||||||
|
|
||||||
void usbController::receivePTTStatus(bool on) {
|
void usbController::receivePTTStatus(bool on) {
|
||||||
static QColor lastColour = currentColour;
|
static QColor lastColour = currentColour;
|
||||||
if (on) {
|
static bool ptt;
|
||||||
|
if (on && !ptt) {
|
||||||
lastColour = currentColour;
|
lastColour = currentColour;
|
||||||
programWheelColour(255, 0, 0);
|
programWheelColour(255, 0, 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
programWheelColour((quint8)lastColour.red(), (quint8)lastColour.green(), (quint8)lastColour.blue());
|
programWheelColour((quint8)lastColour.red(), (quint8)lastColour.green(), (quint8)lastColour.blue());
|
||||||
}
|
}
|
||||||
|
ptt = on;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Ładowanie…
Reference in New Issue