Github-Arduino/libraries/Adafruit_TinyFlash/Adafruit_TinyFlash.cpp
boolean Adafruit_TinyFlash::waitForReady(uint32_t timeout) {
	uint8_t  status;
	uint32_t startTime = millis();

	do {
		cmd(CMD_READSTAT1);
		status = spi_xfer(0);
		CHIP_DESELECT
		if((millis() - startTime) > timeout) return false;
	} while(status & STAT_BUSY);

	return true;
}
// Poll status register until busy flag is clear or timeout occurs
Poll status register until busy flag is clear or timeout occurs
Poll status register until busy flag is clear or timeout occurs
boolean Adafruit_TinyFlash::waitForReady(uint32_t timeout) {
	uint8_t  status;
	uint32_t startTime = millis();
	do {
		cmd(CMD_READSTAT1);
		status = spi_xfer(0);
		CHIP_DESELECT
		if((millis() - startTime) > timeout) return false;
	} while(status & STAT_BUSY);
	return true;
}
boolean Adafruit_TinyFlash :: waitForReady ( uint32_t timeout ) { uint8_t status ; uint32_t startTime = millis ( ) ; do { cmd ( CMD_READSTAT1 ) ; status = spi_xfer ( 0 ) ; CHIP_DESELECT if ( ( millis ( ) - startTime ) > timeout ) return false ; } while ( status & STAT_BUSY ) ; return true ; }
Poll status register until busy flag is clear or timeout occurs
Poll status register until busy flag is clear or timeout occurs