Sfoglia il codice sorgente

Return true on successful write

perhaps better
main
FrankBoesing 9 anni fa
parent
commit
d363207682
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      SerialFlashDirectory.cpp

+ 1
- 1
SerialFlashDirectory.cpp Vedi 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…
Annulla
Salva