projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add LUFA-111009-BETA tag.
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
Class
/
Host
/
StillImage.c
diff --git
a/LUFA/Drivers/USB/Class/Host/StillImage.c
b/LUFA/Drivers/USB/Class/Host/StillImage.c
index
be83497
..
48aa864
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Host/StillImage.c
+++ b/
LUFA/Drivers/USB/Class/Host/StillImage.c
@@
-74,7
+74,7
@@
uint8_t SI_Host_ConfigurePipes(USB_ClassInfo_SI_Host_t* const SIInterfaceInfo,
USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(ConfigDescriptorData, USB_Descriptor_Endpoint_t);
USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(ConfigDescriptorData, USB_Descriptor_Endpoint_t);
- if (
EndpointData->EndpointAddress & ENDPOINT_DESCRIPTOR
_DIR_IN)
+ if (
(EndpointData->EndpointAddress & ENDPOINT_DIR_MASK) == ENDPOINT
_DIR_IN)
{
if ((EndpointData->Attributes & EP_TYPE_MASK) == EP_TYPE_INTERRUPT)
EventsEndpoint = EndpointData;
{
if ((EndpointData->Attributes & EP_TYPE_MASK) == EP_TYPE_INTERRUPT)
EventsEndpoint = EndpointData;
@@
-254,7
+254,7
@@
uint8_t SI_Host_ReceiveBlockHeader(USB_ClassInfo_SI_Host_t* const SIInterfaceInf
if (Pipe_IsStalled())
{
if (Pipe_IsStalled())
{
- USB_Host_Clear
PipeStall(SIInterfaceInfo->Config.DataOUTPipeNumber
);
+ USB_Host_Clear
EndpointStall(Pipe_GetBoundEndpointAddress()
);
return PIPE_RWSTREAM_PipeStalled;
}
return PIPE_RWSTREAM_PipeStalled;
}
@@
-264,7
+264,7
@@
uint8_t SI_Host_ReceiveBlockHeader(USB_ClassInfo_SI_Host_t* const SIInterfaceInf
if (Pipe_IsStalled())
{
if (Pipe_IsStalled())
{
- USB_Host_Clear
PipeStall(SIInterfaceInfo->Config.DataINPipeNumber
);
+ USB_Host_Clear
EndpointStall(Pipe_GetBoundEndpointAddress()
);
return PIPE_RWSTREAM_PipeStalled;
}
return PIPE_RWSTREAM_PipeStalled;
}