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:
Dean Camera 2009-12-18 00:32:21 +00:00
parent c3758ac5ef
commit 2cab8f0725
3 changed files with 4 additions and 2 deletions

View file

@ -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
}