Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
d6e3259f
Commit
d6e3259f
authored
Dec 04, 2009
by
Dean Camera
Browse files
Fix incorrect const'ness of the ReportItem parameter in USB_SetHIDReportItemInfo().
parent
2919aeea
Changes
2
Hide whitespace changes
Inline
Side-by-side
LUFA/Drivers/USB/Class/Host/HIDParser.c
View file @
d6e3259f
...
...
@@ -312,7 +312,7 @@ bool USB_GetHIDReportItemInfo(const uint8_t* ReportData, HID_ReportItem_t* const
return
true
;
}
void
USB_SetHIDReportItemInfo
(
uint8_t
*
ReportData
,
const
HID_ReportItem_t
*
ReportItem
)
void
USB_SetHIDReportItemInfo
(
uint8_t
*
ReportData
,
HID_ReportItem_t
*
const
ReportItem
)
{
uint16_t
DataBitsRem
=
ReportItem
->
Attributes
.
BitSize
;
uint16_t
CurrentBit
=
ReportItem
->
BitOffset
;
...
...
LUFA/Drivers/USB/Class/Host/HIDParser.h
View file @
d6e3259f
...
...
@@ -278,7 +278,7 @@
* \param[out] ReportData Buffer holding the current OUT or FEATURE report data
* \param[in] ReportItem Pointer to the report item of interest in a \ref HID_ReportInfo_t ReportItem array
*/
void
USB_SetHIDReportItemInfo
(
uint8_t
*
ReportData
,
const
HID_ReportItem_t
*
ReportItem
)
void
USB_SetHIDReportItemInfo
(
uint8_t
*
ReportData
,
HID_ReportItem_t
*
const
ReportItem
)
ATTR_NON_NULL_PTR_ARG
(
1
)
ATTR_NON_NULL_PTR_ARG
(
2
);
/** Retrieves the size of a given HID report in bytes from it's Report ID.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment