diff options
author | Andrew Duggan <aduggan@synaptics.com> | 2015-09-10 15:23:38 -0700 |
---|---|---|
committer | Andrew Duggan <aduggan@synaptics.com> | 2015-09-10 15:33:05 -0700 |
commit | da82cd351724d7449921e4b1da82d47de27c2ea2 (patch) | |
tree | eeb5d7d4b19acff6dd95bafaf40487bc29075892 | |
parent | 1595330b5e3b47895012046ff81a929236afd9d2 (diff) | |
download | platform_external_rmi4utils-da82cd351724d7449921e4b1da82d47de27c2ea2.tar.gz platform_external_rmi4utils-da82cd351724d7449921e4b1da82d47de27c2ea2.tar.bz2 platform_external_rmi4utils-da82cd351724d7449921e4b1da82d47de27c2ea2.zip |
HIDDevice::Write: return number of bytes of data written
Write was returning the size of an output report since that is
what the the lower level write is returning. On success HIDDevice::Write
should return the number of bytes actual data which is what the caller
cares about.
-rw-r--r-- | rmidevice/hiddevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rmidevice/hiddevice.cpp b/rmidevice/hiddevice.cpp index 0872812..8ea35da 100644 --- a/rmidevice/hiddevice.cpp +++ b/rmidevice/hiddevice.cpp @@ -320,7 +320,7 @@ int HIDDevice::Write(unsigned short addr, const unsigned char *buf, unsigned sho else return count; } - return count; + return len; } } |