Skip to content

Commit 1ab4bff

Browse files
committed
clean up
1 parent 343ff95 commit 1ab4bff

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
# 0.10.5
44

5+
- Fixed Feather nRF52840 Express's qspi driver to work with on-board flash device
6+
- Rework USB driver using Adafruit_TinyUSB library
7+
- Added Metro nRF52840 Express
8+
9+
# 0.10.1
10+
511
This release added multiple concurrent peripheral connections support, allow Bluefruit device to multiple central (phones/PC) simultaneously. It introduces new BLE class: BLEPeriph, BLEConnection, remove BLEGap, refactor/rename/move functions and callbacks.
612

713
- Fixed Servo detach issue

cores/nRF5/Adafruit_TinyUSB_Core/Adafruit_TinyUSB_Core.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ static void usb_hardware_init(void)
8181
if ( usb_reg & POWER_USBREGSTATUS_OUTPUTRDY_Msk ) tusb_hal_nrf_power_event(NRFX_POWER_USB_EVT_READY);
8282
}
8383

84-
void Adafruit_TinyUSB_Core_init(void)
84+
static void load_serial_number(void)
8585
{
86-
// Create Serial string descriptor
8786
char tmp_serial[17];
8887
sprintf(tmp_serial, "%08lX%08lX", NRF_FICR->DEVICEID[1], NRF_FICR->DEVICEID[0]);
8988

@@ -92,6 +91,12 @@ void Adafruit_TinyUSB_Core_init(void)
9291
usb_desc_str_serial[1+i] = tmp_serial[i];
9392
}
9493

94+
}
95+
96+
void Adafruit_TinyUSB_Core_init(void)
97+
{
98+
// Create Serial string descriptor
99+
load_serial_number();
95100

96101
USBDevice.addInterface( (Adafruit_USBD_Interface&) Serial);
97102
USBDevice.setID(USB_VID, USB_PID);

0 commit comments

Comments
 (0)