Update usbcontroller.cpp

smart-pointers
Phil Taylor 2023-02-12 17:17:29 +00:00
rodzic 6de14df1da
commit 9afc661c4c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -578,7 +578,7 @@ void usbController::runTimer()
if ((quint8)data[1] == 0xf0) { if ((quint8)data[1] == 0xf0) {
qInfo(logUsbControl()) << "Received:" << data; qInfo(logUsbControl()) << "Received:" << data;
quint32 tempButtons = data[3] << 8 | data[2] & 0xff; quint32 tempButtons = (data[3] << 8) | (data[2] & 0xff);
// Step through all buttons and emit ones that have been pressed. // Step through all buttons and emit ones that have been pressed.
for (unsigned char i = 0; i < 10; i++) for (unsigned char i = 0; i < 10; i++)