Skip to content

Commit 27aad28

Browse files
committed
CommonHelpers: Set values to 0xFF to debug that memory was failed to read
1 parent 4c870c1 commit 27aad28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CommonHelpers/Vlv0100.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,20 @@ public static bool Open()
6363
var data = inpOut?.ReadMemory(PDFV, 2);
6464
if (data is not null)
6565
FirmwareVersion = BitConverter.ToUInt16(data);
66+
else
67+
FirmwareVersion = 0xFFFF;
6668

6769
data = inpOut?.ReadMemory(XBID, 1);
6870
if (data is not null)
6971
BoardID = data[0];
72+
else
73+
BoardID = 0xFF;
7074

7175
data = inpOut?.ReadMemory(PDCT, 1);
7276
if (data is not null)
7377
PDCS = data[0];
78+
else
79+
PDCS = 0xFF;
7480

7581
return true;
7682
}

0 commit comments

Comments
 (0)