瀏覽代碼

Merge pull request #28 from eriknyquist/master

SerialFlash: enlarge chip ID buffer
main
Paul Stoffregen 8 年之前
父節點
當前提交
826da1a177
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      SerialFlashDirectory.cpp

+ 1
- 1
SerialFlashDirectory.cpp 查看文件

@@ -310,7 +310,7 @@ bool SerialFlashChip::create(const char *filename, uint32_t length, uint32_t ali
// last check, if enough space exists...
len = strlen(filename);
// TODO: check for enough string space for filename
uint8_t id[3];
uint8_t id[5];
SerialFlash.readID(id);
if (address + length > SerialFlash.capacity(id)) return false;


Loading…
取消
儲存