fix wakeup()
This commit is contained in:
parent
6da0f48e9f
commit
7885ef3f9e
|
|
@ -179,7 +179,7 @@ void SPIFlash::command(uint8_t cmd, boolean isWrite){
|
||||||
// that is because some chips can take several seconds to carry out a chip erase or other similar multi block or entire-chip operations
|
// that is because some chips can take several seconds to carry out a chip erase or other similar multi block or entire-chip operations
|
||||||
// a recommended alternative to such situations where chip can be or not be present is to add a 10k or similar weak pulldown on the
|
// a recommended alternative to such situations where chip can be or not be present is to add a 10k or similar weak pulldown on the
|
||||||
// open drain MISO input which can read noise/static and hence return a non 0 status byte, causing the while() to hang when a flash chip is not present
|
// open drain MISO input which can read noise/static and hence return a non 0 status byte, causing the while() to hang when a flash chip is not present
|
||||||
while(busy());
|
if (cmd != SPIFLASH_WAKE) while(busy());
|
||||||
select();
|
select();
|
||||||
SPI.transfer(cmd);
|
SPI.transfer(cmd);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue