https://forum.pjrc.com/threads/33328-Prop-Shield-Beta-Test?p=98553&viewfull=1#post98553main
@@ -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 |