Skip to content

Commit

Permalink
Add missing break statements in _beginSPI()
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyazou committed Nov 19, 2017
1 parent 4347aee commit 1de2c10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FLASHIO.cpp
Expand Up @@ -188,18 +188,22 @@ bool SPIFlash::_beginSPI(uint8_t opcode) {
_nextByte(WRITE, opcode);
_nextByte(WRITE, DUMMYBYTE);
_transferAddress();
break;

case SECTORERASE:
_nextByte(WRITE, opcode);
_transferAddress();
break;

case BLOCK32ERASE:
_nextByte(WRITE, opcode);
_transferAddress();
break;

case BLOCK64ERASE:
_nextByte(WRITE, opcode);
_transferAddress();
break;

default:
_nextByte(WRITE, opcode);
Expand Down

0 comments on commit 1de2c10

Please sign in to comment.