From 8adec4dd198444044dd65c09ad603665d3425072 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 19 Apr 2019 21:57:52 +0700 Subject: [PATCH] clean up --- cores/nRF5/usb/Adafruit_USBDevice.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/cores/nRF5/usb/Adafruit_USBDevice.cpp b/cores/nRF5/usb/Adafruit_USBDevice.cpp index 00921e37..1f89b469 100644 --- a/cores/nRF5/usb/Adafruit_USBDevice.cpp +++ b/cores/nRF5/usb/Adafruit_USBDevice.cpp @@ -56,17 +56,12 @@ uint16_t const * const string_desc_arr [] = // since CFG_TUD_DESC_AUTO is enabled, we only need to set string_arr tud_desc_set_t tud_desc_set = { - .device = NULL, - .config = NULL, + .device = NULL, // update later + .config = NULL, // update later .string_arr = (uint8_t const **) string_desc_arr, .string_count = sizeof(string_desc_arr)/sizeof(string_desc_arr[0]), - .hid_report = - { - .generic = NULL, - .boot_keyboard = NULL, - .boot_mouse = NULL - } + .hid_report = NULL // update later }; } // extern C @@ -182,6 +177,8 @@ bool Adafruit_USBDevice::begin(uint16_t vid, uint16_t pid) { _desc_device.idVendor = vid; _desc_device.idProduct = pid; + + return true; } #endif