Skip to content

Commit 069b760

Browse files
committed
Resolve compiler warning in USBCore
Resolve compiler warning from performing arithmetic on void pointers
1 parent e676868 commit 069b760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/USB/USBCore.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ uint32_t USBDeviceClass::send(uint32_t ep, const void *data, uint32_t len)
646646
; // need fire exit.
647647
}
648648
len -= length;
649-
data += length;
649+
data = (char *)data + length;
650650
}
651651
return len;
652652
}

0 commit comments

Comments
 (0)