mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
correctly check id
This commit is contained in:
parent
b3f2580e84
commit
b72f0365ea
@ -68,7 +68,7 @@ static struct flash_info *flash_getinfo(uint8_t *id)
|
|||||||
|
|
||||||
while (f->id[0]) {
|
while (f->id[0]) {
|
||||||
if ((f->id[0] == id[0]) && (f->id[1] == id[1]) &&
|
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;
|
break;
|
||||||
f++;
|
f++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user