Seperated out parts of the PrinterHost incomplete demo into a seperate Lib subdirectory.
Fixed Host mode to Device mode UID change not causing a USB Disconnect event when a device was connected.
This commit is contained in:
parent
23f3c3deee
commit
a54ed0085b
14 changed files with 213 additions and 95 deletions
|
@ -243,8 +243,8 @@ ISR(USB_GEN_vect, ISR_BLOCK)
|
|||
{
|
||||
if (USB_CurrentMode == USB_MODE_HOST)
|
||||
EVENT_USB_DeviceUnattached();
|
||||
else
|
||||
EVENT_USB_Disconnect();
|
||||
|
||||
EVENT_USB_Disconnect();
|
||||
}
|
||||
|
||||
EVENT_USB_UIDChange();
|
||||
|
|
|
@ -39,7 +39,7 @@ volatile bool USB_IsInitialized;
|
|||
USB_Request_Header_t USB_ControlRequest;
|
||||
|
||||
#if defined(USB_CAN_BE_HOST)
|
||||
volatile uint8_t USB_HostState;
|
||||
volatile uint8_t USB_HostState;
|
||||
#endif
|
||||
|
||||
void USB_USBTask(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue