Fixes this problem: https://forum.pjrc.com/threads/33594-SerialFlash-filesystem-question?p=101511&viewfull=1#post101511 (inportant, i think...)main
SPI.transfer(*p++); | SPI.transfer(*p++); | ||||
} while (--pagelen > 0); | } while (--pagelen > 0); | ||||
CSRELEASE(); | CSRELEASE(); | ||||
busy = 1; | |||||
busy = 4; | |||||
SPI.endTransaction(); | SPI.endTransaction(); | ||||
} while (len > 0); | } while (len > 0); | ||||
} | } |