File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,8 @@ uint8_t TinyUSB_Port_GetSerialNumber(uint8_t serial_id[16]) {
105105// handler if SD is not enabled.
106106extern " 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 ();
You can’t perform that action at this time.
0 commit comments