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 committed 2009-12-18 00:32:21 +00:00
1 parent c3758ac5ef
commit 2cab8f0725
3 files changed
+4 -2

No files matched your search

+1 -1
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
}