Mass storage revert to expand (max 2G img w/ seek)

This reverts commit 54804fcc66.
This commit is contained in:
Willy-JL
2023-08-29 03:25:45 +02:00
parent 0ec8c85481
commit 034edf50ce
10 changed files with 83 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ bool mass_storage_scene_create_image_on_event(void* context, SceneManagerEvent e
uint64_t size = image_sizes[app->create_image_size].value;
if(size == app->create_image_max) size--;
if(!storage_file_seek(app->file, size, true)) break;
if(!storage_file_expand(app->file, size)) break;
// Zero out first 4k - partition table and adjacent data
if(!storage_file_seek(app->file, 0, true)) break;