[Core] ChibiOS: Fix USB bus disconnect handling (#18566)

This commit is contained in:
Stefan Kerkmann 2022-10-02 15:35:33 +02:00 committed by GitHub
parent c4ff8192c2
commit 6f13a76530
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,7 @@
#include "usb_util.h"
void usb_disconnect(void) {
usbDisconnectBus(&USBD1);
usbStop(&USBD1);
}