Do not calculate pregaps when dumping on a Plextor as some older models contains firmware bugs that crash the bus.

It is not needed really when dumping.
This commit is contained in:
2020-12-05 14:04:27 +00:00
parent ef0e035385
commit 3546c35d42

View File

@@ -218,6 +218,13 @@ namespace Aaru.Core.Devices.Dumping
continue;
}
if(dumping && dev.Manufacturer.ToLowerInvariant().StartsWith("plextor"))
{
AaruConsole.DebugWriteLine("Pregap calculator", "Skipping track {0} due to Plextor firmware bug", track.TrackSequence);
continue;
}
AaruConsole.DebugWriteLine("Pregap calculator", "Track {0}", track.TrackSequence);
int lba = (int)track.TrackStartSector - 1;