mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 05:27:58 +00:00
Minor tweak
This commit is contained in:
@@ -171,8 +171,6 @@ class HIDDeviceUdev final : public IHIDDevice
|
||||
udev_device_unref(udevDev);
|
||||
}
|
||||
|
||||
int m_reportDescSz;
|
||||
|
||||
static void _threadProcHID(std::shared_ptr<HIDDeviceUdev> device)
|
||||
{
|
||||
char errStr[256];
|
||||
|
||||
@@ -106,7 +106,7 @@ class HIDListenerUdev final : public IHIDListener
|
||||
int reportDescSize;
|
||||
if (ioctl(fd, HIDIOCGRDESCSIZE, &reportDescSize) == -1)
|
||||
{
|
||||
const char* err = strerror(errno);
|
||||
//const char* err = strerror(errno);
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
@@ -116,7 +116,7 @@ class HIDListenerUdev final : public IHIDListener
|
||||
reportDesc.size = reportDescSize;
|
||||
if (ioctl(fd, HIDIOCGRDESC, &reportDesc) == -1)
|
||||
{
|
||||
const char* err = strerror(errno);
|
||||
//const char* err = strerror(errno);
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -494,7 +494,7 @@ HIDParser::ParseItem(HIDReports& reportsOut,
|
||||
uint8_t bDataSize = GetByteValue(it, end, status);
|
||||
if (status == ParserStatus::Error)
|
||||
return ParserStatus::Error;
|
||||
uint8_t bLongItemTag = GetByteValue(it, end, status);
|
||||
/*uint8_t bLongItemTag =*/ GetByteValue(it, end, status);
|
||||
if (status == ParserStatus::Error)
|
||||
return ParserStatus::Error;
|
||||
status = AdvanceIt(it, end, bDataSize);
|
||||
|
||||
Reference in New Issue
Block a user