Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
lufa
Commits
c2de01b6
Commit
c2de01b6
authored
14 years ago
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Fixed incorrect definition of HID_ALIGN_DATA() causing incorrect HID report item data alignment.
parent
f79f9abd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LUFA/Drivers/USB/Class/Host/HIDParser.h
+1
-1
1 addition, 1 deletion
LUFA/Drivers/USB/Class/Host/HIDParser.h
LUFA/ManPages/ChangeLog.txt
+1
-0
1 addition, 0 deletions
LUFA/ManPages/ChangeLog.txt
with
2 additions
and
1 deletion
LUFA/Drivers/USB/Class/Host/HIDParser.h
+
1
−
1
View file @
c2de01b6
...
...
@@ -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: */
...
...
This diff is collapsed.
Click to expand it.
LUFA/ManPages/ChangeLog.txt
+
1
−
0
View file @
c2de01b6
...
...
@@ -31,6 +31,7 @@
* U4 series USB AVR parts
* - Fixed LowLevel MassStorage demo broken on the U2 AVRs due to double-banked endpoints
* - Fixed compilation error in the AudioInput demos when MICROPHONE_BIASED_TO_HALF_RAIL is defined (thanks to C. Scott Ananian)
* - Fixed incorrect definition of HID_ALIGN_DATA() causing incorrect HID report item data alignment
*
* \section Sec_ChangeLog100219 Version 100219
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment