1. iorodeo
  2. iorodeo_maple_libs

Commits

iorodeo  committed 9f8e86d

Fixed bug in example write uint8 function.

  • Participants
  • Parent commits 52786a9
  • Branches default

Comments (0)

Files changed (1)

File FlashMemory/Example/basic/basic.pde

View file
 }
 
 void writeUint8ToFlashPage() {
-    uint8 data0;
-    uint8 data1;
+    uint8 data0=0;
+    uint8 data1=0;
     for (uint16 address=0; address<flashMemory.maxAddress; address++) {
         flashMemory.writeData(flashPageNum,address,data0,data1);
         if (data0 < 255) {