correctly check id

This commit is contained in:
none 2021-02-24 20:16:43 +01:00
parent b3f2580e84
commit b72f0365ea
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ static struct flash_info *flash_getinfo(uint8_t *id)
while (f->id[0]) {
if ((f->id[0] == id[0]) && (f->id[1] == id[1]) &&
((id[0] == 0xff) || (f->id[0] == id[0])))
((id[2] == 0xff) || (f->id[2] == id[2])))
break;
f++;
}