{\r
uint8_t ErrorCode = PIPE_RWSTREAM_ERROR_NoError;\r
\r
+ /* If an error in the command ocurred, abort */\r
+ if (MassStore_WaitForDataReceived() != NoError)\r
+ return;\r
+\r
/* Select the IN data pipe for data reception */\r
Pipe_SelectPipe(MASS_STORE_DATA_IN_PIPE);\r
Pipe_Unfreeze();\r
* time options\r
* - All comments in the library, bootloaders, demos and projects have now been spell-checked and spelling mistakes/typos corrected\r
* - Added new PIMA_DATA_SIZE() define to the Still Image Host demo\r
+ * - Add call to MassStore_WaitForDataReceived() in MassStore_GetReturnedStatus() to ensure that the CSW has been received in the extended\r
+ * MSC timeout period before continuing, to prevent long processing delays from causing the MassStore_GetReturnedStatus() to early-abort\r
*\r
* \section Sec_ChangeLog090401 Version 090401\r
*\r