aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Drivers/USB/Class/Host/HIDParser.h
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2010-03-24 05:58:20 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2010-03-24 05:58:20 +0000
commit732eb95795fd32844e67bd439c9d2c8d7b50a3db (patch)
tree5b9d499160d91cb8ea59f6427a60b0238380b93b /LUFA/Drivers/USB/Class/Host/HIDParser.h
parent462b0465df66971195820ee101945207938e2eb5 (diff)
Fixed incorrect definition of HID_ALIGN_DATA() causing incorrect HID report item data alignment.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1176 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Drivers/USB/Class/Host/HIDParser.h')
-rw-r--r--LUFA/Drivers/USB/Class/Host/HIDParser.h2
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 b9698939..6b6549b5 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: */