Skip to content

Commit b4fb10e

Browse files
committed
update(core/usbd_core): clear configuration in disconnect callback
Signed-off-by: sakumisu <[email protected]>
1 parent e3c50cd commit b4fb10e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/usbd_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,7 @@ void usbd_event_connect_handler(uint8_t busid)
11231123

11241124
void usbd_event_disconnect_handler(uint8_t busid)
11251125
{
1126+
g_usbd_core[busid].configuration = 0;
11261127
g_usbd_core[busid].event_handler(busid, USBD_EVENT_DISCONNECTED);
11271128
}
11281129

0 commit comments

Comments
 (0)