aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-03-22 07:12:25 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-03-22 07:12:25 +0000
commit49b09a2042368947ab34f788f00b710183912285 (patch)
tree5f7a09d599f84d37d1b122b66e6c0c0b62731c5e /Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
parent5227ca4ce2be126b118a900e9242c813fef5e6bf (diff)
downloadlufa-49b09a2042368947ab34f788f00b710183912285.tar.gz
lufa-49b09a2042368947ab34f788f00b710183912285.tar.bz2
lufa-49b09a2042368947ab34f788f00b710183912285.zip
Standardized the naming scheme given to configuration descriptor sub-elements in the Device mode demos, bootloaders and projects.
Fix errors in the MouseHostWithParser demo from incorrect use of the HID_ALIGN_DATA() macro.
Diffstat (limited to 'Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c')
-rw-r--r--Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c b/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
index 6339a9239..d0aca1e5d 100644
--- a/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
+++ b/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
@@ -147,7 +147,7 @@ int main(void)
(ReportItem->Attributes.Usage.Usage == USAGE_SCROLL_WHEEL) &&
(ReportItem->ItemType == REPORT_ITEM_TYPE_In))
{
- int16_t WheelDelta = HID_ALIGN_DATA(ReportItem->Value, int16_t);
+ int16_t WheelDelta = HID_ALIGN_DATA(ReportItem, int16_t);
if (WheelDelta)
LEDMask = (LEDS_LED1 | LEDS_LED2 | ((WheelDelta > 0) ? LEDS_LED3 : LEDS_LED4));
@@ -157,7 +157,7 @@ int main(void)
(ReportItem->Attributes.Usage.Usage == USAGE_Y)) &&
(ReportItem->ItemType == REPORT_ITEM_TYPE_In))
{
- int16_t DeltaMovement = HID_ALIGN_DATA(ReportItem->Value, int16_t);
+ int16_t DeltaMovement = HID_ALIGN_DATA(ReportItem, int16_t);
if (ReportItem->Attributes.Usage.Usage == USAGE_X)
{