Merge pull request #7 from hesee/eraseCount

Increment erased block count in erase loop
pull/7774/head
Christopher Haster 2018-05-02 22:19:39 +03:00 committed by GitHub
commit 5aa9039129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 */