diff options
author | Arisotura <thetotalworm@gmail.com> | 2022-03-14 18:08:29 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2022-03-14 18:08:29 +0100 |
commit | 3756f3cb1f1434ed06c96e8bd36139c1f53525ff (patch) | |
tree | d57fa7afe355f4fd0d14220e95d7864d35960295 /src/SPI.cpp | |
parent | 5415f8a7469b6454c10734b3344e945654032690 (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.cpp | 1 |
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; } |