mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Allow ASC 28h in streaming device report.
This commit is contained in:
@@ -782,6 +782,22 @@ namespace DiscImageChef.Commands
|
|||||||
|
|
||||||
mediaIsRecognized &= !sense;
|
mediaIsRecognized &= !sense;
|
||||||
}
|
}
|
||||||
|
// These should be trapped by the OS but seems in some cases they're not
|
||||||
|
else if(decSense.Value.ASC == 0x28)
|
||||||
|
{
|
||||||
|
int leftRetries = 50;
|
||||||
|
while(leftRetries > 0)
|
||||||
|
{
|
||||||
|
DicConsole.Write("\rWaiting for drive to become ready");
|
||||||
|
Thread.Sleep(2000);
|
||||||
|
sense = dev.ScsiTestUnitReady(out senseBuffer, dev.Timeout, out _);
|
||||||
|
if(!sense) break;
|
||||||
|
|
||||||
|
leftRetries--;
|
||||||
|
}
|
||||||
|
|
||||||
|
mediaIsRecognized &= !sense;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DicConsole.DebugWriteLine("Device-Report command",
|
DicConsole.DebugWriteLine("Device-Report command",
|
||||||
|
|||||||
Reference in New Issue
Block a user