Browse Source

Merge pull request #25 from FrankBoesing/patch-1

Fix read-after-write
main
Paul Stoffregen 8 years ago
parent
commit
129cf09e02
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      SerialFlashChip.cpp

+ 1
- 1
SerialFlashChip.cpp View File

@@ -208,7 +208,7 @@ void SerialFlashChip::write(uint32_t addr, const void *buf, uint32_t len)
SPI.transfer(*p++);
} while (--pagelen > 0);
CSRELEASE();
busy = 1;
busy = 4;
SPI.endTransaction();
} while (len > 0);
}

Loading…
Cancel
Save