mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Consider if the F1h command 06h subcommand returns the same data when trying lead-out than when tried LBA 0, it was a failure.
This commit is contained in:
597
.idea/.idea.Aaru/.idea/contentModel.xml
generated
597
.idea/.idea.Aaru/.idea/contentModel.xml
generated
File diff suppressed because it is too large
Load Diff
@@ -1759,6 +1759,15 @@ namespace Aaru.Core.Devices.Report
|
||||
|
||||
mediaTest.ReadF1_06LeadOutData = mediaTest.CanReadF1_06LeadOut == true ? buffer : senseBuffer;
|
||||
|
||||
// This means it has returned the same as previous read, so not really lead-out.
|
||||
if(mediaTest.CanReadF1_06 == true &&
|
||||
mediaTest.CanReadF1_06LeadOut == true &&
|
||||
mediaTest.ReadF1_06Data.SequenceEqual(mediaTest.ReadF1_06LeadOutData))
|
||||
{
|
||||
mediaTest.CanReadF1_06LeadOut = false;
|
||||
mediaTest.ReadF1_06LeadOutData = senseBuffer;
|
||||
}
|
||||
|
||||
AaruConsole.DebugWriteLine("SCSI Report", "Sense = {0}", !mediaTest.CanReadF1_06LeadOut);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user