@@ -170,7 +170,6 @@ static s32_t _read(u32_t addr, u32_t size, u8_t *dst) {
170
170
}
171
171
172
172
static s32_t _write (u32_t addr , u32_t size , u8_t * src ) {
173
- int i ;
174
173
//printf("wr %08x %i\n", addr, size);
175
174
if (log_flash_ops ) {
176
175
bytes_wr += size ;
@@ -375,7 +374,7 @@ void dump_flash_access_stats() {
375
374
}
376
375
377
376
378
- static u32_t old_perc = 999 ;
377
+ // static u32_t old_perc = 999;
379
378
static void spiffs_check_cb_f (spiffs_check_type type , spiffs_check_report report ,
380
379
u32_t arg1 , u32_t arg2 ) {
381
380
/* if (report == SPIFFS_CHECK_PROGRESS && old_perc != arg1) {
@@ -458,7 +457,11 @@ void fs_reset_specific(u32_t addr_offset, u32_t phys_addr, u32_t phys_size,
458
457
memset (erases ,0 ,sizeof (erases ));
459
458
memset (_cache ,0 ,sizeof (_cache ));
460
459
460
+ #if SPIFFS_USE_MAGIC
461
461
s32_t res = fs_mount_specific (phys_addr , phys_size , phys_sector_size , log_block_size , log_page_size );
462
+ #else
463
+ fs_mount_specific (phys_addr , phys_size , phys_sector_size , log_block_size , log_page_size );
464
+ #endif
462
465
463
466
#if SPIFFS_USE_MAGIC
464
467
if (res == SPIFFS_OK ) {
@@ -539,7 +542,6 @@ void real_assert(int c, const char *n, const char *file, int l) {
539
542
}
540
543
541
544
int read_and_verify (char * name ) {
542
- s32_t res ;
543
545
int fd = SPIFFS_open (& __fs , name , SPIFFS_RDONLY , 0 );
544
546
if (fd < 0 ) {
545
547
printf (" read_and_verify: could not open file %s\n" , name );
@@ -891,7 +893,7 @@ int run_file_config(int cfg_count, tfile_conf* cfgs, int max_runs, int max_concu
891
893
res = SPIFFS_remove (FS , tf -> name );
892
894
CHECK_RES (res );
893
895
remove (make_test_fname (tf -> name ));
894
- memset (tf , 0 , sizeof (tf ));
896
+ memset (tf , 0 , sizeof (* tf ));
895
897
}
896
898
897
899
}
0 commit comments