From a7bf707f24a886388c42688330a481c5e68dce87 Mon Sep 17 00:00:00 2001 From: Lucas PASCAL Date: Thu, 8 Aug 2024 16:30:13 +0200 Subject: [PATCH] [tmp] --- include/app_storage_data.h | 4 ++-- src/app_main.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/app_storage_data.h b/include/app_storage_data.h index e1f12a76..a0b9855a 100644 --- a/include/app_storage_data.h +++ b/include/app_storage_data.h @@ -12,10 +12,10 @@ #define APP_STORAGE_PROPERTIES (APP_STORAGE_PROP_SETTINGS | APP_STORAGE_PROP_DATA) typedef struct { + bool initialized; #ifdef ENABLE_RK_CONFIG uint8_t rk_enabled; + rk_storage_t rk; #endif - bool initialized; config_t config; - rk_storage_t rk; } app_storage_data_t; diff --git a/src/app_main.c b/src/app_main.c index 739de0e2..b5939009 100644 --- a/src/app_main.c +++ b/src/app_main.c @@ -91,7 +91,7 @@ uint8_t io_event(uint8_t channel) { return 1; } -static bool init_app_storage(void) { +static bool init_persistent_storage(void) { app_storage_data_t storage_data = {0}; if (!app_storage_is_initalized()) { @@ -124,8 +124,8 @@ void app_main() { io_init(); - if (!init_app_storage()) { - PRINTF("Error while configuring the storage\n"); + if (!init_persistent_storage()) { + PRINTF("Error while configuring the storage - aborting\n"); return; }