From 868dbf3b75da78c3b719764ecb3e4d2ca80866a6 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 26 Oct 2023 09:19:31 +0100 Subject: [PATCH] [Decoders.SCSI] Fix SCSI SENSE not being decoded if VALID bit set. Fixes #824 --- SCSI/Sense.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCSI/Sense.cs b/SCSI/Sense.cs index d5343c851..2587552a9 100644 --- a/SCSI/Sense.cs +++ b/SCSI/Sense.cs @@ -227,7 +227,7 @@ public static SenseType GetType(byte[] sense) { var decoded = new DecodedSense(); - switch(sense[0]) + switch(sense[0] & 0x7F) { case 0x70: case 0x71: