USB_IsConnected is now cleared before the USB_Disconnect() event is fired in response to VBUS being removed.
Minor documentation improvements.
This commit is contained in:
@@ -89,6 +89,8 @@ ISR(USB_GEN_vect, ISR_BLOCK)
|
||||
}
|
||||
else
|
||||
{
|
||||
USB_IsConnected = false;
|
||||
|
||||
EVENT_USB_Disconnect();
|
||||
|
||||
USB_Detach();
|
||||
@@ -96,8 +98,6 @@ ISR(USB_GEN_vect, ISR_BLOCK)
|
||||
USB_PLL_Off();
|
||||
USB_REG_Off();
|
||||
|
||||
USB_IsConnected = false;
|
||||
|
||||
EVENT_USB_VBUSDisconnect();
|
||||
|
||||
USB_INT_Clear(USB_INT_VBUS);
|
||||
|
||||
Reference in New Issue
Block a user