Skip to content

Commit 32fa9b2

Browse files
committed
Merge pull request ARMmbed#42 from adamgreen/usbdeviceGccWarnSilence
USBDevice: Silence GCC warning
2 parents dfd6fe6 + 76b7bb4 commit 32fa9b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/USBDevice/USBDevice/USBHAL_KL25Z.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static uint8_t addr = 0;
7575
static uint32_t Data1 = 0x55555555;
7676

7777
static uint32_t frameNumber() {
78-
return((USB0->FRMNUML | (USB0->FRMNUMH << 8) & 0x07FF));
78+
return((USB0->FRMNUML | (USB0->FRMNUMH << 8)) & 0x07FF);
7979
}
8080

8181
uint32_t USBHAL::endpointReadcore(uint8_t endpoint, uint8_t *buffer) {

0 commit comments

Comments
 (0)