Skip to content

Commit

Permalink
Send unplugged signal on dcd_disconnect call
Browse files Browse the repository at this point in the history
  • Loading branch information
rechrtb committed Apr 26, 2024
1 parent c9832bc commit 5734a23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/portable/microchip/samx7x/dcd_samx7x.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ void dcd_disconnect(uint8_t rhport)
USB_REG->DEVCTRL |= DEVCTRL_DETACH;
// Disable the device address
USB_REG->DEVCTRL &=~(DEVCTRL_ADDEN | DEVCTRL_UADD);
dcd_event_bus_signal(0, DCD_EVENT_UNPLUGGED, false);
}

void dcd_sof_enable(uint8_t rhport, bool en)
Expand Down

0 comments on commit 5734a23

Please sign in to comment.