Added new RNDISHost Host LowLevel demo. Fixed misnamed Pipe_SetPipeToken() macro...
[pub/USBasp.git] / Projects / Incomplete / StandaloneProgrammer / Lib / SCSI.c
index 6a97871..44e10d2 100644 (file)
@@ -38,6 +38,7 @@
 #define  INCLUDE_FROM_SCSI_C\r
 #include "SCSI.h"\r
 \r
 #define  INCLUDE_FROM_SCSI_C\r
 #include "SCSI.h"\r
 \r
+#if defined(USB_CAN_BE_DEVICE)\r
 /** Structure to hold the SCSI response data to a SCSI INQUIRY command. This gives information about the device's\r
  *  features and capabilities.\r
  */\r
 /** Structure to hold the SCSI response data to a SCSI INQUIRY command. This gives information about the device's\r
  *  features and capabilities.\r
  */\r
@@ -279,3 +280,4 @@ static void SCSI_Command_ReadWrite_10(USB_ClassInfo_MS_Device_t* MSInterfaceInfo
        /* Update the bytes transferred counter and succeed the command */\r
        MSInterfaceInfo->State.CommandBlock.DataTransferLength -= ((uint32_t)TotalBlocks * VIRTUAL_MEMORY_BLOCK_SIZE);\r
 }\r
        /* Update the bytes transferred counter and succeed the command */\r
        MSInterfaceInfo->State.CommandBlock.DataTransferLength -= ((uint32_t)TotalBlocks * VIRTUAL_MEMORY_BLOCK_SIZE);\r
 }\r
+#endif\r