Fixed GenericHIDHost demo report write routine incorrect for control type requests...
[pub/USBasp.git] / Demos / Device / MassStorage / SCSI.c
index d50f63d..e92be7f 100644 (file)
@@ -174,7 +174,7 @@ static bool SCSI_Command_Inquiry(void)
        Endpoint_Write_Stream_LE(&PadBytes, (AllocationLength - BytesTransferred), AbortOnMassStoreReset);\r
 \r
        /* Finalize the stream transfer to send the last packet */\r
-       Endpoint_ClearCurrentBank();\r
+       Endpoint_ClearIN();\r
 \r
        /* Succeed the command and update the bytes transferred counter */\r
        CommandBlock.DataTransferLength -= BytesTransferred;\r
@@ -201,7 +201,7 @@ static bool SCSI_Command_Request_Sense(void)
        Endpoint_Write_Stream_LE(&PadBytes, (AllocationLength - BytesTransferred), AbortOnMassStoreReset);\r
 \r
        /* Finalize the stream transfer to send the last packet */\r
-       Endpoint_ClearCurrentBank();\r
+       Endpoint_ClearIN();\r
 \r
        /* Succeed the command and update the bytes transferred counter */\r
        CommandBlock.DataTransferLength -= BytesTransferred;\r
@@ -227,7 +227,7 @@ static bool SCSI_Command_Read_Capacity_10(void)
          return false;\r
 \r
        /* Send the endpoint data packet to the host */\r
-       Endpoint_ClearCurrentBank();\r
+       Endpoint_ClearIN();\r
 \r
        /* Succeed the command and update the bytes transferred counter */\r
        CommandBlock.DataTransferLength -= 8;\r