diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-05-03 14:34:20 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-05-03 14:34:20 +0000 |
commit | edcfaf7716c978a29ffd082f77587b21bea7a344 (patch) | |
tree | 557259d8ce059d40d4cd75bd89467cb8df3e8dc8 /Demos/Host/StillImageHost | |
parent | 0137001ea9f1b3a18fc6e14ab5c5ddbf819680ca (diff) | |
download | lufa-edcfaf7716c978a29ffd082f77587b21bea7a344.tar.gz lufa-edcfaf7716c978a29ffd082f77587b21bea7a344.tar.bz2 lufa-edcfaf7716c978a29ffd082f77587b21bea7a344.zip |
Fix build errors in host demos due to usage of pipe error codes which have now been renamed.
Diffstat (limited to 'Demos/Host/StillImageHost')
-rw-r--r-- | Demos/Host/StillImageHost/StillImageCommands.c | 10 | ||||
-rw-r--r-- | Demos/Host/StillImageHost/StillImageHost.c | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/Demos/Host/StillImageHost/StillImageCommands.c b/Demos/Host/StillImageHost/StillImageCommands.c index 49ab0df01..8f05e48f4 100644 --- a/Demos/Host/StillImageHost/StillImageCommands.c +++ b/Demos/Host/StillImageHost/StillImageCommands.c @@ -119,7 +119,7 @@ uint8_t SImage_RecieveBlockHeader(void) if (!(TimeoutMSRem))
{
/* Return error code */
- return PIPE_RWSTREAM_ERROR_Timeout;
+ return PIPE_RWSTREAM_Timeout;
}
}
@@ -132,7 +132,7 @@ uint8_t SImage_RecieveBlockHeader(void) SImage_ClearPipeStall(SIMAGE_DATA_OUT_PIPE);
/* Return error code and break out of the loop */
- return PIPE_RWSTREAM_ERROR_PipeStalled;
+ return PIPE_RWSTREAM_PipeStalled;
}
Pipe_SelectPipe(SIMAGE_DATA_IN_PIPE);
@@ -144,14 +144,14 @@ uint8_t SImage_RecieveBlockHeader(void) SImage_ClearPipeStall(SIMAGE_DATA_IN_PIPE);
/* Return error code */
- return PIPE_RWSTREAM_ERROR_PipeStalled;
+ return PIPE_RWSTREAM_PipeStalled;
}
/* Check to see if the device was disconnected, if so exit function */
if (!(USB_IsConnected))
{
/* Return error code */
- return PIPE_RWSTREAM_ERROR_DeviceDisconnected;
+ return PIPE_RWSTREAM_DeviceDisconnected;
}
};
@@ -185,7 +185,7 @@ uint8_t SImage_RecieveBlockHeader(void) /* Freeze the IN pipe after use */
Pipe_Freeze();
- return PIPE_RWSTREAM_ERROR_NoError;
+ return PIPE_RWSTREAM_NoError;
}
/** Function to send the given data to the device, after a command block has been issued.
diff --git a/Demos/Host/StillImageHost/StillImageHost.c b/Demos/Host/StillImageHost/StillImageHost.c index ca5292ba2..ceec151aa 100644 --- a/Demos/Host/StillImageHost/StillImageHost.c +++ b/Demos/Host/StillImageHost/StillImageHost.c @@ -222,7 +222,7 @@ TASK(USB_SImage_Host) SImage_SendBlockHeader();
/* Receive the response data block */
- if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_ERROR_NoError)
+ if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_NoError)
{
ShowCommandError(ErrorCode, false);
break;
@@ -273,7 +273,7 @@ TASK(USB_SImage_Host) printf_P(PSTR(" Device Version: %s\r\n"), DeviceVersion);
/* Receive the final response block from the device */
- if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_ERROR_NoError)
+ if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_NoError)
{
ShowCommandError(ErrorCode, false);
break;
@@ -301,7 +301,7 @@ TASK(USB_SImage_Host) SImage_SendBlockHeader();
/* Receive the response block from the device */
- if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_ERROR_NoError)
+ if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_NoError)
{
ShowCommandError(ErrorCode, false);
break;
@@ -329,7 +329,7 @@ TASK(USB_SImage_Host) SImage_SendBlockHeader();
/* Receive the response block from the device */
- if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_ERROR_NoError)
+ if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_NoError)
{
ShowCommandError(ErrorCode, false);
break;
|