Fix C2 error mode for selected drives

- C2ErrorMode.Mode294 does not work for these drives:
  LG GH24NSD1, ASUS DRW-24D5MT. Try Mode296 first
- Fixes the following exception:
  CUETools.Ripper.SCSI.SCSIException:
  'Error reading CD: medium error: UNRECOVERED READ ERROR'
- Resolves #19
This commit is contained in:
Wolfgang Stöggl
2021-04-10 09:57:42 +02:00
parent 711c3dd1c8
commit f4ec19f560

View File

@@ -782,9 +782,14 @@ namespace CUETools.Ripper.SCSI
if (readCommandFound)
return true;
//ReadCDCommand[] readmode = { ReadCDCommand.ReadCdBEh, ReadCDCommand.ReadCdD8h };
ReadCDCommand[] readmode = { ReadCDCommand.ReadCdBEh, ReadCDCommand.ReadCdD8h };
ReadCDCommand[] readmode = { ReadCDCommand.ReadCdBEh, ReadCDCommand.ReadCdD8h };
Device.C2ErrorMode[] c2mode = { Device.C2ErrorMode.Mode294, Device.C2ErrorMode.Mode296, Device.C2ErrorMode.None };
// Mode294 does not work for these drives: LG GH24NSD1, ASUS DRW-24D5MT. Try Mode296 first
if (Path.Contains("GH24NSD1") || Path.Contains("DRW-24D5MT"))
{
c2mode.SetValue(Device.C2ErrorMode.Mode296, 0);
c2mode.SetValue(Device.C2ErrorMode.Mode294, 1);
}
Device.MainChannelSelection[] mainmode = { Device.MainChannelSelection.UserData, Device.MainChannelSelection.F8h };
bool found = false;
_autodetectResult = "";