diff --git a/src/portable/nordic/nrf5x/hal_nrf5x.c b/src/portable/nordic/nrf5x/hal_nrf5x.c index 4ce512746..f40e904d7 100644 --- a/src/portable/nordic/nrf5x/hal_nrf5x.c +++ b/src/portable/nordic/nrf5x/hal_nrf5x.c @@ -61,6 +61,7 @@ enum { #endif #include "tusb_hal.h" +#include "device/dcd.h" /*------------------------------------------------------------------*/ /* MACRO TYPEDEF CONSTANT ENUM @@ -291,6 +292,8 @@ void tusb_hal_nrf_power_event (uint32_t event) nrf_usbd_disable(); hfclk_disable(); + + dcd_event_bus_signal(0, DCD_EVENT_UNPLUGGED, true); } break;