Skip to content

Commit 8adec4d

Browse files
committed
clean up
1 parent 756291a commit 8adec4d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

cores/nRF5/usb/Adafruit_USBDevice.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,12 @@ uint16_t const * const string_desc_arr [] =
5656
// since CFG_TUD_DESC_AUTO is enabled, we only need to set string_arr
5757
tud_desc_set_t tud_desc_set =
5858
{
59-
.device = NULL,
60-
.config = NULL,
59+
.device = NULL, // update later
60+
.config = NULL, // update later
6161
.string_arr = (uint8_t const **) string_desc_arr,
6262
.string_count = sizeof(string_desc_arr)/sizeof(string_desc_arr[0]),
6363

64-
.hid_report =
65-
{
66-
.generic = NULL,
67-
.boot_keyboard = NULL,
68-
.boot_mouse = NULL
69-
}
64+
.hid_report = NULL // update later
7065
};
7166

7267
} // extern C
@@ -182,6 +177,8 @@ bool Adafruit_USBDevice::begin(uint16_t vid, uint16_t pid)
182177
{
183178
_desc_device.idVendor = vid;
184179
_desc_device.idProduct = pid;
180+
181+
return true;
185182
}
186183

187184
#endif

0 commit comments

Comments
 (0)