kopia lustrzana https://gitlab.com/eliggett/wfview
LED not working, maybe due to data size?
rodzic
6c44ea9e0d
commit
193e07284e
|
@ -479,10 +479,10 @@ void usbController::ledControl(bool on, unsigned char num)
|
||||||
|
|
||||||
void usbController::getVersion()
|
void usbController::getVersion()
|
||||||
{
|
{
|
||||||
QByteArray data(9, 0x0);
|
QByteArray data(64, 0x0);
|
||||||
data[0] = 8;
|
data[0] = 63;
|
||||||
data[1] = 0x02;
|
data[1] = 0x02;
|
||||||
int res = hid_write(handle, (const unsigned char*)data.constData(), 8);
|
int res = hid_write(handle, (const unsigned char*)data.constData(), data.size());
|
||||||
|
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
qDebug(logUsbControl()) << "Unable to write(), Error:" << hid_error(handle);
|
qDebug(logUsbControl()) << "Unable to write(), Error:" << hid_error(handle);
|
||||||
|
|
Ładowanie…
Reference in New Issue