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).

pull/1469/head
Dean Camera 15 years ago
parent c3758ac5ef
commit 2cab8f0725

@ -125,7 +125,7 @@ void USB_ShutDown(void)
USB_IsInitialized = false; USB_IsInitialized = false;
#if defined(CAN_BE_BOTH) #if defined(USB_CAN_BE_BOTH)
USB_CurrentMode = USB_MODE_NONE; USB_CurrentMode = USB_MODE_NONE;
#endif #endif
} }

@ -64,6 +64,8 @@
* - Fixed MIDI host Class driver MIDI_Host_SendEventPacket() routine not properly checking for Pipe ready before writing * - Fixed MIDI host Class driver MIDI_Host_SendEventPacket() routine not properly checking for Pipe ready before writing
* - Fixed use of deprecated struct initializers, removed library unused parameter warnings when compiled with -Wextra enabled * - Fixed use of deprecated struct initializers, removed library unused parameter warnings when compiled with -Wextra enabled
* - Fixed Still Image Host Class driver truncating the PIMA response code (thanks to Daniel Seibert) * - Fixed Still Image Host Class driver truncating the PIMA response code (thanks to Daniel Seibert)
* - 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)
* *
* \section Sec_ChangeLog091122 Version 091122 * \section Sec_ChangeLog091122 Version 091122
* *

@ -11,7 +11,7 @@
* \image html LUFA.gif * \image html LUFA.gif
* \n * \n
* *
* For author and donation information, see \ref Page_Donating. * <b>For author and donation information, see \ref Page_Donating.</b>
* *
* LUFA is an open-source USB library for the USB-enabled AVR microcontrollers, released under the MIT license. It supports * LUFA is an open-source USB library for the USB-enabled AVR microcontrollers, released under the MIT license. It supports
* a large number of USB AVR models and boards (see \ref Page_DeviceSupport). It is designed to provide an easy to use, feature * a large number of USB AVR models and boards (see \ref Page_DeviceSupport). It is designed to provide an easy to use, feature

Loading…
Cancel
Save