I2C EEProm library

Fork of eeprom by FRA221_2015

Files at this revision

API Documentation at this revision

Comitter:
JojoS
Date:
Mon Dec 21 17:31:49 2015 +0000
Parent:
3:df82ebf4be54
Commit message:
write(address, data, length) fiailed when writing full flash size. There was address command too much, fixed by checking remaining bytes == 0.

Changed in this revision

eeprom.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/eeprom.cpp	Sat Nov 14 14:27:06 2015 +0000
+++ b/eeprom.cpp	Mon Dec 21 17:31:49 2015 +0000
@@ -305,6 +305,9 @@
         }
     }
 
+    if (remain == 0)
+        return;
+    
     // Compute page number
     page = 0;
     if(_type < T24C32)