We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6368a commit ce52dbcCopy full SHA for ce52dbc
src/storage/storage.nrf51.c
@@ -4,6 +4,8 @@
4
#include "nrf_delay.h"
5
#include "feature_config.h"
6
7
+bool is_erased = true;
8
+
9
FS_REGISTER_CFG(fs_config_t fs_config) =
10
{
11
.callback = fs_evt_handler, // Function for event callbacks.
@@ -81,8 +83,6 @@ void storage_checksum_check(){
81
83
// read 4 more to capcure checksum
82
84
storage_read(0x00, data, length + 4);
85
- bool is_erased = true;
-
86
for(uint32_t i = 0; i < length; i++){
87
if(data[i] != 0xFF){
88
is_erased = false;
0 commit comments