better heuristic for Flash save type

This commit is contained in:
StapleButter 2017-04-25 03:24:22 +02:00
parent 9b5f293a9e
commit 7ac538d5d2
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ void Write_Discover(u8 val, bool islast)
{
Discover_MemoryType = 5;
}
else if (len > 2+128) // Flash
else if ((len > 2+128) || (len > 1+16 && CurCmd == 0xA)) // Flash
{
Discover_MemoryType = 4;
}