From 10512b3f9b2e30759d08af77960ab0ead539a055 Mon Sep 17 00:00:00 2001
From: Cristian Maglie <c.maglie@arduino.cc>
Date: Wed, 30 Sep 2015 20:53:05 +0200
Subject: [USB] Fixed some compiler warnings

---
 libraries/HID/HID.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'libraries')

diff --git a/libraries/HID/HID.h b/libraries/HID/HID.h
index 9e6e675..f951229 100644
--- a/libraries/HID/HID.h
+++ b/libraries/HID/HID.h
@@ -98,8 +98,7 @@ private:
   uint8_t idle;
 };
 
-#define D_HIDREPORT(_descriptorLength) \
-  { 9, 0x21, 0x1, 0x1, 0, 1, 0x22, _descriptorLength & 0xFF, _descriptorLength >> 8 }
+#define D_HIDREPORT(length) { 9, 0x21, 0x01, 0x01, 0, 1, 0x22, lowByte(length), highByte(length) }
 
 #define WEAK __attribute__ ((weak))
 
-- 
cgit v1.2.3-18-g5258