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>
This commit is contained in:
Igor Danilov 2023-02-20 15:52:15 +03:00 committed by GitHub
parent 3de6ae07b7
commit 738e0df4f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,9 @@ static void storage_settings_scene_benchmark(StorageSettings* app) {
break;
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, furi_string_get_cstr(app->text_string), 0, 32, AlignLeft, AlignCenter);
}