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]) {
105
105
// handler if SD is not enabled.
106
106
extern " C" void tusb_hal_nrf_power_event (uint32_t event);
107
107
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);
111
110
}
112
111
113
112
// Init usb hardware when starting up. Softdevice is not enabled yet
@@ -125,7 +124,7 @@ static void usb_hardware_init(void) {
125
124
nrfx_power_init (&pwr_cfg);
126
125
127
126
// 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};
129
128
130
129
nrfx_power_usbevt_init (&config);
131
130
nrfx_power_usbevt_enable ();
You can’t perform that action at this time.
0 commit comments