Flash handler for M25P* chips with no Device ID.
Fork of flash25spi by
Revision 2:14c5db5e54df, committed 2011-02-20
- Comitter:
- stonie
- Date:
- Sun Feb 20 11:16:27 2011 +0000
- Parent:
- 1:aa6409c599cb
- Child:
- 3:318fabd6708c
- Commit message:
- minor fixes
Changed in this revision
flash25spi.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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) {