Version for FWST0001_v2_00
Fork of 25LCxxx_SPI by
Diff: Ser25lcxxx.cpp
- Revision:
- 3:314812139e9c
- Parent:
- 2:3a3404dbd3eb
--- a/Ser25lcxxx.cpp Sat Feb 19 18:29:20 2011 +0000 +++ b/Ser25lcxxx.cpp Mon Apr 03 11:59:26 2017 +0000 @@ -73,6 +73,7 @@ } bool Ser25LCxxx::write(unsigned int startAdr, unsigned int len, const char* data) { + enableWrite(); if (startAdr+len>_size) return -1; @@ -89,6 +90,7 @@ // and switch to next page ofs+=pageLen; } + waitForWrite(); return true; }