Skip to content

Commit 8dc1275

Browse files
Fix GCC 12.3 warning in USB Video core
GCC 12 complains when a structure member is not initialized, so set a sane default value. Fixes #385
1 parent 2e5fb95 commit 8dc1275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arduino/video/Adafruit_USBD_Video.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ uint16_t Adafruit_USBD_Video::getInterfaceDescriptor(uint8_t itfnum_deprecated,
230230
.bDescriptorType = TUSB_DESC_ENDPOINT,
231231

232232
.bEndpointAddress = ep_in,
233-
.bmAttributes = {.xfer = TUSB_XFER_BULK, .sync = 0},
233+
.bmAttributes = {.xfer = TUSB_XFER_BULK, .sync = 0, .usage = 0},
234234
.wMaxPacketSize = 64,
235235
.bInterval = 1}};
236236

0 commit comments

Comments
 (0)