diff --git a/src/spiFlash.cpp b/src/spiFlash.cpp index cdf6d19..2d5eb5a 100644 --- a/src/spiFlash.cpp +++ b/src/spiFlash.cpp @@ -525,7 +525,7 @@ void SPIFlash::read_id() } /* 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"); if (_verbose > 0)