瀏覽代碼

Merge pull request #2 from FrankBoesing/patch-2

Return true on successful write
main
Paul Stoffregen 9 年之前
父節點
當前提交
7fa7e78f93
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      SerialFlashDirectory.cpp

+ 1
- 1
SerialFlashDirectory.cpp 查看文件

buf[0] = filename_hash(filename); buf[0] = filename_hash(filename);
SerialFlash.write(buf, 8 + index * 2, 2); SerialFlash.write(buf, 8 + index * 2, 2);
while (!SerialFlash.ready()) ; // TODO: timeout while (!SerialFlash.ready()) ; // TODO: timeout
return false;
return true;
} }


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

Loading…
取消
儲存