/* SCSI_UpdateBotData fill the requested Data to transmit buffer.  */
static int8_t SCSI_UpdateBotData(USBD_MSC_BOT_HandleTypeDef *hmsc, uint8_t *pBuff, uint16_t length)
/* SCSI_UpdateBotData fill the requested Data to transmit buffer.  */
static int8_t SCSI_UpdateBotData(USBD_MSC_BOT_HandleTypeDef *hmsc, uint8_t *pBuff, uint16_t length)
{
  uint16_t len = length;
  if (hmsc == NULL)
  {
    return -1;
  }
  hmsc->bot_data_length = len;
  while (len != 0U)
  {
    len--;
    hmsc->bot_data[len] = pBuff[len];
  }
  return 0;
}