Browse Source

Return true on successful write

perhaps better
main
FrankBoesing 9 years ago
parent
commit
d363207682
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      SerialFlashDirectory.cpp

+ 1
- 1
SerialFlashDirectory.cpp View File

@@ -251,7 +251,7 @@ bool SerialFlashChip::create(const char *filename, uint32_t length, uint32_t ali
buf[0] = filename_hash(filename);
SerialFlash.write(buf, 8 + index * 2, 2);
while (!SerialFlash.ready()) ; // TODO: timeout
return false;
return true;
}

bool SerialFlashChip::readdir(char *filename, uint32_t strsize, uint32_t &filesize)

Loading…
Cancel
Save