mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-20 15:30:28 +01:00
CommonHelpers: Set values to 0xFF to debug that memory was failed to read
This commit is contained in:
parent
93d2c05308
commit
90945da9dc
|
|
@ -63,14 +63,20 @@
|
|||
var data = inpOut?.ReadMemory(PDFV, 2);
|
||||
if (data is not null)
|
||||
FirmwareVersion = BitConverter.ToUInt16(data);
|
||||
else
|
||||
FirmwareVersion = 0xFFFF;
|
||||
|
||||
data = inpOut?.ReadMemory(XBID, 1);
|
||||
if (data is not null)
|
||||
BoardID = data[0];
|
||||
else
|
||||
BoardID = 0xFF;
|
||||
|
||||
data = inpOut?.ReadMemory(PDCT, 1);
|
||||
if (data is not null)
|
||||
PDCS = data[0];
|
||||
else
|
||||
PDCS = 0xFF;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue