Skip to content

Commit

Permalink
Fixed bug that prevented FastRead from working as it was meant to. Re…
Browse files Browse the repository at this point in the history
…solves #173
  • Loading branch information
Marzogh committed Jun 2, 2019
1 parent 0f6b540 commit 7e0825a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/SPIFlashIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@

case FASTREAD:
_nextByte(WRITE, opcode);
_nextByte(WRITE, DUMMYBYTE);
_transferAddress();
_nextByte(WRITE, DUMMYBYTE);
break;

case SECTORERASE:
Expand Down Expand Up @@ -576,7 +576,7 @@
else {
if (_chip.sfdpAvailable) {
#ifdef RUNDIAGNOSTIC
Serial.println("SFDP ID finished.");
Serial.println(F("SFDP ID finished."));
#endif
return true;
}
Expand All @@ -588,7 +588,9 @@
}

if (!_chip.capacity) {

#ifdef RUNDIAGNOSTIC
Serial.println(F("Chip capacity cannot be identified"));
#endif
if (flashChipSize) {
// If a custom chip size is defined
#ifdef RUNDIAGNOSTIC
Expand Down

0 comments on commit 7e0825a

Please sign in to comment.