A library to read and write all 25* serial SPI flash devices from various manufacturers.
Diff: flash25spi.cpp
- Revision:
- 2:14c5db5e54df
- Parent:
- 1:aa6409c599cb
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) {