forked from mfulz_github/qmk_firmware
		
	Oops - fix errors in the MassStorageKeyboard SCSI driver file due to incorrect copy/paste.
This commit is contained in:
		
							parent
							
								
									c326fe9605
								
							
						
					
					
						commit
						ba711d6759
					
				| @ -307,10 +307,10 @@ static bool SCSI_Command_ReadWrite_10(USB_ClassInfo_MS_Device_t* MSInterfaceInfo | |||||||
| 	uint16_t TotalBlocks; | 	uint16_t TotalBlocks; | ||||||
| 	 | 	 | ||||||
| 	/* Load in the 32-bit block address (SCSI uses big-endian, so have to reverse the byte order) */ | 	/* Load in the 32-bit block address (SCSI uses big-endian, so have to reverse the byte order) */ | ||||||
| 	BlockAddress = SwapEndian_32(*(uint32_t*)&CommandBlock.SCSICommandData[2]); | 	BlockAddress = SwapEndian_32(*(uint32_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[2]); | ||||||
| 
 | 
 | ||||||
| 	/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */ | 	/* Load in the 16-bit total blocks (SCSI uses big-endian, so have to reverse the byte order) */ | ||||||
| 	TotalBlocks  = SwapEndian_16(*(uint16_t*)&CommandBlock.SCSICommandData[7]); | 	TotalBlocks  = SwapEndian_16(*(uint16_t*)&MSInterfaceInfo->State.CommandBlock.SCSICommandData[7]); | ||||||
| 	 | 	 | ||||||
| 	/* Check if the block address is outside the maximum allowable value for the LUN */ | 	/* Check if the block address is outside the maximum allowable value for the LUN */ | ||||||
| 	if (BlockAddress >= LUN_MEDIA_BLOCKS) | 	if (BlockAddress >= LUN_MEDIA_BLOCKS) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera