diff options
author | Andrew Duggan <aduggan@synaptics.com> | 2014-04-29 13:34:42 -0700 |
---|---|---|
committer | Andrew Duggan <aduggan@synaptics.com> | 2014-04-29 13:34:42 -0700 |
commit | e9a5cd0172ce96168a9431531d259b677f331aa6 (patch) | |
tree | b210ba77d0deacecd5288d661de20e6c7efe51af /rmidevice/hiddevice.cpp | |
parent | d02a0b030911951257e354fa82ce967bc4e51f9f (diff) | |
download | rmi4utils-e9a5cd0172ce96168a9431531d259b677f331aa6.tar.gz |
Add additional commands to rmihidtool and allow them to be set from the command line.
Diffstat (limited to 'rmidevice/hiddevice.cpp')
-rw-r--r-- | rmidevice/hiddevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rmidevice/hiddevice.cpp b/rmidevice/hiddevice.cpp index 800dbe0..8b99d75 100644 --- a/rmidevice/hiddevice.cpp +++ b/rmidevice/hiddevice.cpp @@ -250,14 +250,14 @@ int HIDDevice::WaitForAttention(struct timeval * timeout, int *sources) return GetAttentionReport(timeout, sources, NULL, NULL); } -int HIDDevice::GetAttentionReport(struct timeval * timeout, int *sources, unsigned char *buf, int *len) +int HIDDevice::GetAttentionReport(struct timeval * timeout, int *sources, unsigned char *buf, unsigned int *len) { int rc; int interrupt_sources; const unsigned char * queue_report; int bytes = m_inputReportSize; - if (len && (int)m_inputReportSize < *len) { + if (len && m_inputReportSize < *len) { bytes = *len; *len = m_inputReportSize; } |