Flash handler for M25P* chips with no Device ID.

Dependencies:   RTOS_SPI_Clean

Fork of flash25spi by Klaus Steinhammer

Revision:
2:14c5db5e54df
Parent:
1:aa6409c599cb
Child:
3:318fabd6708c
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) {