소스 검색

Fix inconsistency in scsiVendorCommandSetLen

Niels Martin Hansen 1 년 전
부모
커밋
7cde53f160
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lib/SCSI2SD/src/firmware/vendor.c

+ 2 - 2
lib/SCSI2SD/src/firmware/vendor.c

@@ -115,12 +115,12 @@ void scsiVendorCommandSetLen(uint8_t command, uint8_t* command_length)
 		// Apple CD-ROM with CD audio over the SCSI bus
 		if (scsiDev.target->cfg->quirks == S2S_CFG_QUIRKS_APPLE && (command == 0xD8 || command == 0xD9))
 		{
-			scsiDev.cdbLen =  12;
+			*command_length =  12;
 		}
 		// Plextor CD-ROM vendor extensions 0xD8
 		if (unlikely(scsiDev.target->cfg->vendorExtensions & VENDOR_EXTENSION_OPTICAL_PLEXTOR) && command == 0xD8)
 		{
-			scsiDev.cdbLen =  12;
+			*command_length =  12;
 		}
 	}