aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/Host/HIDParser.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-10-03 07:59:32 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-10-03 07:59:32 +0000
commit433399b05db8d4a8a3989e90614f7206d49568fc (patch)
tree7f69f5ea95c68005221caab40a9bb1e11ae5b80a /LUFA/Drivers/USB/Class/Host/HIDParser.c
parent3ebfb998ec4eef73543a8e8bde0019a3057b72dc (diff)
downloadlufa-433399b05db8d4a8a3989e90614f7206d49568fc.tar.gz
lufa-433399b05db8d4a8a3989e90614f7206d49568fc.tar.bz2
lufa-433399b05db8d4a8a3989e90614f7206d49568fc.zip
Changed Audio Class driver sample read/write functions to be inline, to reduce the number of cycles needed to transfer samples to and from the device (allowing more time for processing and output).
Fixed ClassDriver AudioOutput demo not selecting an audio output mode.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Host/HIDParser.c')
-rw-r--r--LUFA/Drivers/USB/Class/Host/HIDParser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/HIDParser.c b/LUFA/Drivers/USB/Class/Host/HIDParser.c
index 4d433e56e..6b370af30 100644
--- a/LUFA/Drivers/USB/Class/Host/HIDParser.c
+++ b/LUFA/Drivers/USB/Class/Host/HIDParser.c
@@ -216,7 +216,8 @@ uint8_t USB_ProcessHIDReport(const uint8_t* ReportData, uint16_t ReportSize, HID
case (TYPE_MAIN | TAG_MAIN_INPUT):
case (TYPE_MAIN | TAG_MAIN_OUTPUT):
case (TYPE_MAIN | TAG_MAIN_FEATURE):
- for (uint8_t ReportItemNum = 0; ReportItemNum < CurrStateTable->ReportCount; ReportItemNum++)
+ uint8_t Count = CurrStateTable->ReportCount;
+ for (uint8_t ReportItemNum = 0; ReportItemNum < Count; ReportItemNum++)
{
HID_ReportItem_t NewReportItem;