Make the HID Report Parser Get/Set Report Item routines fail if a NULL pointer to a report item is given.
Minor visual enhancement to the HIDReportViewer project.
This commit is contained in:
parent
6599238dab
commit
bb0b761c65
2 changed files with 7 additions and 1 deletions
|
@ -140,7 +140,7 @@ int main(void)
|
|||
((ReportSizeFeatureBits >> 3) + ((ReportSizeFeatureBits & 0x07) != 0)));
|
||||
}
|
||||
|
||||
printf_P(PSTR("\r\n\r\nReport Items: %d\r\n"), HIDReportInfo.TotalDeviceReports);
|
||||
puts_P(PSTR("\r\nReport Items:\r\n"));
|
||||
for (uint8_t ItemIndex = 0; ItemIndex < HIDReportInfo.TotalReportItems; ItemIndex++)
|
||||
{
|
||||
const HID_ReportItem_t* RItem = &HIDReportInfo.ReportItems[ItemIndex];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue