Skip to content

Commit e4b3ff2

Browse files
committed
[USB] Fixed some compiler warnings
1 parent 7f1ffad commit e4b3ff2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hardware/arduino/avr/cores/arduino/USBCore.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999

100100
// bEndpointAddress in Endpoint Descriptor
101101
#define USB_ENDPOINT_DIRECTION_MASK 0x80
102-
#define USB_ENDPOINT_OUT(addr) ((addr) | 0x00)
103-
#define USB_ENDPOINT_IN(addr) ((addr) | 0x80)
102+
#define USB_ENDPOINT_OUT(addr) (lowByte((addr) | 0x00))
103+
#define USB_ENDPOINT_IN(addr) (lowByte((addr) | 0x80))
104104

105105
#define USB_ENDPOINT_TYPE_MASK 0x03
106106
#define USB_ENDPOINT_TYPE_CONTROL 0x00
@@ -277,4 +277,4 @@ typedef struct
277277
#define D_CDCCS4(_subtype,_d0) { 4, 0x24, _subtype, _d0 }
278278

279279

280-
#endif
280+
#endif

0 commit comments

Comments
 (0)