From 10512b3f9b2e30759d08af77960ab0ead539a055 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 30 Sep 2015 20:53:05 +0200 Subject: [USB] Fixed some compiler warnings --- cores/arduino/USBCore.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cores') diff --git a/cores/arduino/USBCore.h b/cores/arduino/USBCore.h index eaeecef..806fa60 100644 --- a/cores/arduino/USBCore.h +++ b/cores/arduino/USBCore.h @@ -99,8 +99,8 @@ // bEndpointAddress in Endpoint Descriptor #define USB_ENDPOINT_DIRECTION_MASK 0x80 -#define USB_ENDPOINT_OUT(addr) ((addr) | 0x00) -#define USB_ENDPOINT_IN(addr) ((addr) | 0x80) +#define USB_ENDPOINT_OUT(addr) (lowByte((addr) | 0x00)) +#define USB_ENDPOINT_IN(addr) (lowByte((addr) | 0x80)) #define USB_ENDPOINT_TYPE_MASK 0x03 #define USB_ENDPOINT_TYPE_CONTROL 0x00 @@ -277,4 +277,4 @@ typedef struct #define D_CDCCS4(_subtype,_d0) { 4, 0x24, _subtype, _d0 } -#endif \ No newline at end of file +#endif -- cgit v1.2.3-18-g5258