Skip to content

Commit

Permalink
[tmp]
Browse files Browse the repository at this point in the history
  • Loading branch information
lpascal-ledger committed Aug 8, 2024
1 parent 144c3cc commit a7bf707
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions include/app_storage_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
6 changes: 3 additions & 3 deletions src/app_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit a7bf707

Please sign in to comment.