From 5b7b88420b169d1dfdeea6d082762fccefbc7d49 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 16 Jun 2023 13:14:45 +1000 Subject: Fix issues with importing my entire library --- src/system_fsm/running.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/system_fsm/running.cpp') diff --git a/src/system_fsm/running.cpp b/src/system_fsm/running.cpp index 9116ec9d..f9ff6140 100644 --- a/src/system_fsm/running.cpp +++ b/src/system_fsm/running.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: GPL-3.0-only */ +#include "app_console.hpp" #include "freertos/projdefs.h" #include "result.hpp" @@ -28,6 +29,7 @@ void Running::entry() { vTaskDelay(pdMS_TO_TICKS(250)); auto storage_res = drivers::SdStorage::Create(sGpioExpander.get()); if (storage_res.has_error()) { + ESP_LOGW(kTag, "failed to mount!"); events::Dispatch( StorageError()); return; @@ -38,11 +40,13 @@ void Running::entry() { ESP_LOGI(kTag, "opening database"); auto database_res = database::Database::Open(); if (database_res.has_error()) { + ESP_LOGW(kTag, "failed to open!"); events::Dispatch( StorageError()); return; } sDatabase.reset(database_res.value()); + console::AppConsole::sDatabase = sDatabase; ESP_LOGI(kTag, "storage loaded okay"); events::Dispatch( -- cgit v1.2.3