Skip to content

Commit

Permalink
Merge pull request #7 from hesee/eraseCount
Browse files Browse the repository at this point in the history
Increment erased block count in erase loop
  • Loading branch information
geky authored May 2, 2018
2 parents efcb8a1 + 9ee3f5a commit 5aa9039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataFlashBlockDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ int DataFlashBlockDevice::erase(bd_addr_t addr, bd_size_t size)

/* update loop variables */
addr += _block_size;
erased -= _block_size;
erased += _block_size;
}

/* enable write protection */
Expand Down

0 comments on commit 5aa9039

Please sign in to comment.