projects
/
pub
/
lufa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
44bc433
)
Fixed error receiving PIMA events via the Still Image Host class driver.
author
Dean Camera
<dean@fourwalledcubicle.com>
Fri, 23 Aug 2013 20:59:58 +0000
(22:59 +0200)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Fri, 23 Aug 2013 20:59:58 +0000
(22:59 +0200)
LUFA/DoxygenPages/ChangeLog.txt
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/Class/Common/StillImageClassCommon.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/Class/Host/StillImageClassHost.c
patch
|
blob
|
blame
|
history
diff --git
a/LUFA/DoxygenPages/ChangeLog.txt
b/LUFA/DoxygenPages/ChangeLog.txt
index
5cd6074
..
26eff54
100644
(file)
--- a/
LUFA/DoxygenPages/ChangeLog.txt
+++ b/
LUFA/DoxygenPages/ChangeLog.txt
@@
-43,6
+43,7
@@
* - Fixed incorrect USB device state set when a suspended LUFA device is woken while addressed but not configured (thanks to Balaji Krishnan)
* - Fixed broken USART SPI driver for the AVR8 architecture due to incorrect initialization
* - Fixed re-enumeration issue of XMEGA architecture targets (thanks to Jaroslav Jedlinsky)
* - Fixed incorrect USB device state set when a suspended LUFA device is woken while addressed but not configured (thanks to Balaji Krishnan)
* - Fixed broken USART SPI driver for the AVR8 architecture due to incorrect initialization
* - Fixed re-enumeration issue of XMEGA architecture targets (thanks to Jaroslav Jedlinsky)
+ * - Fixed error receiving PIMA events via the Still Image Host class driver
* - Library Applications:
* - Added handler for SCSI_CMD_START_STOP_UNIT in demos using the Mass Storage class, to prevent ejection errors on *nix systems due to an
* unknown SCSI command
* - Library Applications:
* - Added handler for SCSI_CMD_START_STOP_UNIT in demos using the Mass Storage class, to prevent ejection errors on *nix systems due to an
* unknown SCSI command
diff --git
a/LUFA/Drivers/USB/Class/Common/StillImageClassCommon.h
b/LUFA/Drivers/USB/Class/Common/StillImageClassCommon.h
index
0c7db46
..
fd7b035
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Common/StillImageClassCommon.h
+++ b/
LUFA/Drivers/USB/Class/Common/StillImageClassCommon.h
@@
-119,18
+119,18
@@
{
PIMA_RESPONSE_OK = 1, /**< Response code indicating no error in the issued command. */
PIMA_RESPONSE_GeneralError = 2, /**< Response code indicating a general error while processing the
{
PIMA_RESPONSE_OK = 1, /**< Response code indicating no error in the issued command. */
PIMA_RESPONSE_GeneralError = 2, /**< Response code indicating a general error while processing the
-
* issued command.
-
*/
+ * issued command.
+ */
PIMA_RESPONSE_SessionNotOpen = 3, /**< Response code indicating that the sent command requires an open
PIMA_RESPONSE_SessionNotOpen = 3, /**< Response code indicating that the sent command requires an open
-
* session before being issued.
-
*/
+ * session before being issued.
+ */
PIMA_RESPONSE_InvalidTransaction = 4, /**< Response code indicating an invalid transaction occurred. */
PIMA_RESPONSE_OperationNotSupported = 5, /**< Response code indicating that the issued command is not supported
PIMA_RESPONSE_InvalidTransaction = 4, /**< Response code indicating an invalid transaction occurred. */
PIMA_RESPONSE_OperationNotSupported = 5, /**< Response code indicating that the issued command is not supported
-
* by the attached device.
-
*/
+ * by the attached device.
+ */
PIMA_RESPONSE_ParameterNotSupported = 6, /**< Response code indicating that one or more of the issued command's
PIMA_RESPONSE_ParameterNotSupported = 6, /**< Response code indicating that one or more of the issued command's
-
* parameters are not supported by the device.
-
*/
+ * parameters are not supported by the device.
+ */
};
/* Type Defines: */
};
/* Type Defines: */
diff --git
a/LUFA/Drivers/USB/Class/Host/StillImageClassHost.c
b/LUFA/Drivers/USB/Class/Host/StillImageClassHost.c
index
bcdd1d6
..
5b317f9
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Host/StillImageClassHost.c
+++ b/
LUFA/Drivers/USB/Class/Host/StillImageClassHost.c
@@
-302,7
+302,7
@@
bool SI_Host_IsEventReceived(USB_ClassInfo_SI_Host_t* const SIInterfaceInfo)
Pipe_SelectPipe(SIInterfaceInfo->Config.EventsPipe.Address);
Pipe_Unfreeze();
Pipe_SelectPipe(SIInterfaceInfo->Config.EventsPipe.Address);
Pipe_Unfreeze();
- if (Pipe_
BytesInPipe
())
+ if (Pipe_
IsINReceived
())
IsEventReceived = true;
Pipe_Freeze();
IsEventReceived = true;
Pipe_Freeze();