Skip to content

Commit 31c3fea

Browse files
committed
clang
1 parent 8a48555 commit 31c3fea

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/arduino/ports/Adafruit_TinyUSB_nrf.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ uint8_t TinyUSB_Port_GetSerialNumber(uint8_t serial_id[16]) {
105105
// handler if SD is not enabled.
106106
extern "C" void tusb_hal_nrf_power_event(uint32_t event);
107107

108-
static void power_event_handler(nrfx_power_usb_evt_t event)
109-
{
110-
tusb_hal_nrf_power_event((uint32_t) event);
108+
static void power_event_handler(nrfx_power_usb_evt_t event) {
109+
tusb_hal_nrf_power_event((uint32_t)event);
111110
}
112111

113112
// Init usb hardware when starting up. Softdevice is not enabled yet
@@ -125,7 +124,7 @@ static void usb_hardware_init(void) {
125124
nrfx_power_init(&pwr_cfg);
126125

127126
// Register tusb function as USB power handler
128-
const nrfx_power_usbevt_config_t config = { .handler = power_event_handler};
127+
const nrfx_power_usbevt_config_t config = {.handler = power_event_handler};
129128

130129
nrfx_power_usbevt_init(&config);
131130
nrfx_power_usbevt_enable();

0 commit comments

Comments
 (0)