Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Plextor 0xD8 SCSI vendor command #407

Merged
merged 2 commits into from
Mar 27, 2024
Merged

Fix Plextor 0xD8 SCSI vendor command #407

merged 2 commits into from
Mar 27, 2024

Conversation

morio
Copy link
Collaborator

@morio morio commented Mar 27, 2024

Fixed a bug where the 0xD8 command offset was being overwritten because of a missing else.
Skipped over parts of doReadCD when using the 0xD8 command.
Removed a redundant parameter from scsiDiskOpenHDDImage. target_idx and scsi_id were the same.

A missing `else if` is causing the wrong offset being read during
a Plextor 0xD8 vendor SCSI CDB. Adding the `else` fixes the issue.
It may or may not address the issue #258

Also dropped the `scsi_id` parameter for the function
`scsiDiskOpenHDDImage` as it is redundant, with `target_idx` parameter
being the same value.
Skipped multiple if statements with single if during SD card reads.
@aperezbios aperezbios merged commit e750e0a into main Mar 27, 2024
2 checks passed
@aperezbios aperezbios deleted the fix/d8-plextor branch March 27, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants