mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-29 17:39:36 +02:00
spiFlash: 0x0000 is not a valid jedec id
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user