Skip to content

Commit 5aa9039

Browse files
authored
Merge pull request ARMmbed#7 from hesee/eraseCount
Increment erased block count in erase loop
2 parents efcb8a1 + 9ee3f5a commit 5aa9039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataFlashBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ int DataFlashBlockDevice::erase(bd_addr_t addr, bd_size_t size)
413413

414414
/* update loop variables */
415415
addr += _block_size;
416-
erased -= _block_size;
416+
erased += _block_size;
417417
}
418418

419419
/* enable write protection */

0 commit comments

Comments
 (0)