Fixed USB_CurrentMode not being reset to USB_MODE_NONE when the USB interface is shut down and both Host and Device modes can be used (thanks to Daniel Levy).
This commit is contained in:
parent
c3758ac5ef
commit
2cab8f0725
3 changed files with 4 additions and 2 deletions
|
@ -125,7 +125,7 @@ void USB_ShutDown(void)
|
|||
|
||||
USB_IsInitialized = false;
|
||||
|
||||
#if defined(CAN_BE_BOTH)
|
||||
#if defined(USB_CAN_BE_BOTH)
|
||||
USB_CurrentMode = USB_MODE_NONE;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue