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)

This commit is contained in:
Arisotura
2022-03-14 18:08:29 +01:00
parent 5415f8a746
commit 3756f3cb1f
2 changed files with 8 additions and 7 deletions

View File

@ -564,6 +564,7 @@ void Write(u8 val, u32 hold)
default:
printf("unknown firmware SPI command %02X\n", CurCmd);
Data = 0xFF;
break;
}