Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorあく <alleteam@gmail.com>2021-11-10 12:53:00 +0300
committerGitHub <noreply@github.com>2021-11-10 12:53:00 +0300
commit5209701add1fd6b9aaea387beb5b99fcb3b8afe5 (patch)
tree29e66688fbfefae96b6707386e61db95bd11d464 /applications/storage
parent90d450368c2ce3b0efba5282c9e287397c27fcd8 (diff)
[FL-1991] Rewrite flash driver (#813)
* Toolbox: fix null pointer dereference in manchester decoder. * FuriHal: use MPU to protect from null pointer dereference, replace flash driver with our own implementation.
Diffstat (limited to 'applications/storage')
-rw-r--r--applications/storage/storages/storage-int.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/storage/storages/storage-int.c b/applications/storage/storages/storage-int.c
index 4a1dca7c..3eabdec7 100644
--- a/applications/storage/storages/storage-int.c
+++ b/applications/storage/storages/storage-int.c
@@ -121,7 +121,7 @@ static int storage_int_device_erase(const struct lfs_config* c, lfs_block_t bloc
FURI_LOG_D(TAG, "Device erase: page %d, translated page: %x", block, page);
- if(furi_hal_flash_erase(page, 1)) {
+ if(furi_hal_flash_erase(page)) {
return 0;
} else {
return -1;