diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-03-24 05:58:20 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-03-24 05:58:20 +0000 |
commit | c2de01b66186f8f195b6d19c311a67d1aede6d57 (patch) | |
tree | 5b9d499160d91cb8ea59f6427a60b0238380b93b /LUFA/Drivers/USB/Class | |
parent | f79f9abd28040d839b02ea22cdfde3d0a34f3482 (diff) | |
download | lufa-c2de01b66186f8f195b6d19c311a67d1aede6d57.tar.gz lufa-c2de01b66186f8f195b6d19c311a67d1aede6d57.tar.bz2 lufa-c2de01b66186f8f195b6d19c311a67d1aede6d57.zip |
Fixed incorrect definition of HID_ALIGN_DATA() causing incorrect HID report item data alignment.
Diffstat (limited to 'LUFA/Drivers/USB/Class')
-rw-r--r-- | LUFA/Drivers/USB/Class/Host/HIDParser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/HIDParser.h b/LUFA/Drivers/USB/Class/Host/HIDParser.h index b96989393..6b6549b51 100644 --- a/LUFA/Drivers/USB/Class/Host/HIDParser.h +++ b/LUFA/Drivers/USB/Class/Host/HIDParser.h @@ -137,7 +137,7 @@ *
* \return Left-aligned data of the given report item's pre-retrived value for the given datatype
*/
- #define HID_ALIGN_DATA(reportitem, type) ((type)(reportitem->Value << (sizeof(type) - reportitem->Attributes.BitSize)))
+ #define HID_ALIGN_DATA(reportitem, type) ((type)(reportitem->Value << ((8 * sizeof(type)) - reportitem->Attributes.BitSize)))
/* Public Interface - May be used in end-application: */
/* Enums: */
|