aboutsummaryrefslogtreecommitdiff
path: root/src/SPI.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2022-03-14 18:08:29 +0100
committerArisotura <thetotalworm@gmail.com>2022-03-14 18:08:29 +0100
commit3756f3cb1f1434ed06c96e8bd36139c1f53525ff (patch)
treed57fa7afe355f4fd0d14220e95d7864d35960295 /src/SPI.cpp
parent5415f8a7469b6454c10734b3344e945654032690 (diff)
make invalid SPI memory commands return 0xFF. fixes #1366 (Dementium II checks the results of RDSR, RDID and cmd 00 to determine what kind of backup memory is present)
Diffstat (limited to 'src/SPI.cpp')
-rw-r--r--src/SPI.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SPI.cpp b/src/SPI.cpp
index f46e68e..613ca69 100644
--- a/src/SPI.cpp
+++ b/src/SPI.cpp
@@ -564,6 +564,7 @@ void Write(u8 val, u32 hold)
default:
printf("unknown firmware SPI command %02X\n", CurCmd);
+ Data = 0xFF;
break;
}