check if the chip is busy erasing/writing
| 192 | |
| 193 | /// check if the chip is busy erasing/writing |
| 194 | boolean SPIFlash::busy() |
| 195 | { |
| 196 | /* |
| 197 | select(); |
| 198 | SPI.transfer(SPIFLASH_STATUSREAD); |
| 199 | uint8_t status = SPI.transfer(0); |
| 200 | unselect(); |
| 201 | return status & 1; |
| 202 | */ |
| 203 | return readStatus() & 1; |
| 204 | } |
| 205 | |
| 206 | /// return the STATUS register |
| 207 | uint8_t SPIFlash::readStatus() |
nothing calls this directly
no outgoing calls
no test coverage detected