Decode fixed or descriptor SCSI sense in a single pass, use whichever was returned by drive.

This commit is contained in:
2021-03-26 00:37:54 +00:00
parent e4dbcdebc3
commit eda85862cd
16 changed files with 608 additions and 488 deletions

View File

@@ -276,7 +276,7 @@ namespace Aaru.Core.Devices.Dumping
if(!runningPersistent)
continue;
FixedSense? decSense = Sense.DecodeFixed(senseBuf);
DecodedSense? decSense = Sense.Decode(senseBuf);
// MEDIUM ERROR, retry with ignore error below
if(decSense.HasValue &&