瀏覽代碼

Delete rwfiletest.bin on exit SDcard benchmark (#2415)

* Update storage_settings_scene_benchmark.c: delete rwfiletest.bin on exit SDcard brencmark
* Settings: cleanup SD Benchmark temp file only if test successful


Co-authored-by: あく <alleteam@gmail.com>
Igor Danilov 2 年之前
父節點
當前提交
738e0df4f4
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      applications/settings/storage_settings/scenes/storage_settings_scene_benchmark.c

+ 3 - 0
applications/settings/storage_settings/scenes/storage_settings_scene_benchmark.c

@@ -103,6 +103,9 @@ static void storage_settings_scene_benchmark(StorageSettings* app) {
             break;
             break;
 
 
         furi_string_cat_printf(app->text_string, "R %luK", bench_r_speed[i]);
         furi_string_cat_printf(app->text_string, "R %luK", bench_r_speed[i]);
+
+        storage_common_remove(app->fs_api, BENCH_FILE);
+
         dialog_ex_set_text(
         dialog_ex_set_text(
             dialog_ex, furi_string_get_cstr(app->text_string), 0, 32, AlignLeft, AlignCenter);
             dialog_ex, furi_string_get_cstr(app->text_string), 0, 32, AlignLeft, AlignCenter);
     }
     }