mirror of
https://github.com/wf-group/wfview
synced 2026-08-13 17:32:59 -04:00
tuning knob?
This commit is contained in:
parent
46eaccf12f
commit
1818ebc2bf
1 changed files with 4 additions and 1 deletions
|
|
@ -304,7 +304,7 @@ void usbController::runTimer()
|
|||
<< hex << (unsigned char)data[3] << ":"
|
||||
<< hex << (unsigned char)data[4];
|
||||
*/
|
||||
quint16 tempButtons = (data[4] << 8) | (data[3] & 0xff);
|
||||
quint16 tempButtons = ((quint8)data[4] << 8) | ((quint8)data[3] & 0xff);
|
||||
unsigned char tempJogpos = (unsigned char)data[1];
|
||||
unsigned char tempShutpos = (unsigned char)data[0];
|
||||
|
||||
|
|
@ -519,6 +519,9 @@ void usbController::runTimer()
|
|||
}
|
||||
buttons = tempButtons;
|
||||
|
||||
// Will this work for the tuning knob?
|
||||
jogCounter = jogCounter + (qint8)data[13];
|
||||
|
||||
}
|
||||
|
||||
if (lastusbController.msecsTo(QTime::currentTime()) >= 100 || lastusbController > QTime::currentTime())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue