From d49e5d1fbe9c94d259585c5a20b3d341d559de57 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Mon, 19 Feb 2024 20:51:47 +0000 Subject: [PATCH] Small code fix in storage --- applications/services/storage/storage_i.h | 2 +- applications/services/storage/storage_processing.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/applications/services/storage/storage_i.h b/applications/services/storage/storage_i.h index cb7f16e47..a2591c8a7 100644 --- a/applications/services/storage/storage_i.h +++ b/applications/services/storage/storage_i.h @@ -10,7 +10,7 @@ extern "C" { #endif -#define STORAGE_COUNT (ST_INT + 1) +#define STORAGE_COUNT (ST_ERROR - 1) #define APPS_DATA_PATH EXT_PATH("apps_data") #define APPS_ASSETS_PATH EXT_PATH("apps_assets") diff --git a/applications/services/storage/storage_processing.c b/applications/services/storage/storage_processing.c index aa0c3eac1..84d9d0011 100644 --- a/applications/services/storage/storage_processing.c +++ b/applications/services/storage/storage_processing.c @@ -89,7 +89,6 @@ FS_Error storage_get_data(Storage* app, FuriString* path, StorageData** storage) storage_path_change_to_real_storage(path, type); } - furi_assert(type == ST_EXT || type == ST_INT); *storage = &app->storage[type]; return FSE_OK;