A library to read and write all 25* serial SPI flash devices from various manufacturers.
Revision 2:14c5db5e54df, committed 2011-02-20
- Comitter:
- stonie
- Date:
- Sun Feb 20 11:16:27 2011 +0000
- Parent:
- 1:aa6409c599cb
- Commit message:
- minor fixes
Changed in this revision
flash25spi.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r aa6409c599cb -r 14c5db5e54df flash25spi.cpp --- a/flash25spi.cpp Sun Feb 20 09:24:11 2011 +0000 +++ b/flash25spi.cpp Sun Feb 20 11:16:27 2011 +0000 @@ -146,7 +146,7 @@ bool flash25spi::write(unsigned int startAdr, unsigned int len, const char* data) { if (startAdr+len>_size) - return -1; + return false; unsigned int ofs=0; while (ofs<len) {