PaulStoffregen 8 年之前
父節點
當前提交
c9c66e24b9
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      SerialFlashChip.cpp

+ 1
- 0
SerialFlashChip.cpp 查看文件

@@ -192,6 +192,7 @@ void SerialFlashChip::write(uint32_t addr, const void *buf, uint32_t len)
max = 256 - (addr & 0xFF);
pagelen = (len <= max) ? len : max;
//Serial.printf("WR: addr %08X, pagelen %d\n", addr, pagelen);
delayMicroseconds(1); // TODO: reduce this, but prefer safety first
CSASSERT();
if (flags & FLAG_32BIT_ADDR) {
SPI.transfer(0x02); // program page command

Loading…
取消
儲存