spiFlash: 0x0000 is not a valid jedec id
This commit is contained in:
parent
a39524636b
commit
a7a1a788ff
|
|
@ -525,7 +525,7 @@ void SPIFlash::read_id()
|
||||||
}
|
}
|
||||||
|
|
||||||
/* something wrong with read */
|
/* something wrong with read */
|
||||||
if ((_jedec_id >> 8) == 0xffff)
|
if ((_jedec_id >> 8) == 0xffff || (_jedec_id >> 8) == 0x0000)
|
||||||
throw std::runtime_error("Read ID failed");
|
throw std::runtime_error("Read ID failed");
|
||||||
|
|
||||||
if (_verbose > 0)
|
if (_verbose > 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue