From 214428295bbefcea6e98f091bdee517db69a9d1b Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 12 Oct 2022 12:01:48 +0200 Subject: [PATCH] only do time file handling with mounted SD card --- bsp_q7s/core/CoreController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp_q7s/core/CoreController.cpp b/bsp_q7s/core/CoreController.cpp index 083aebf5..30d5228d 100644 --- a/bsp_q7s/core/CoreController.cpp +++ b/bsp_q7s/core/CoreController.cpp @@ -1241,6 +1241,7 @@ void CoreController::performMountedSdCardOperations() { initClockFromTimeFile(); performRebootFileHandling(false); } + timeFileHandler(); }; bool clearOneShotFlag = false; if (sdInfo.active == sd::SdCard::SLOT_0 and sdcMan->isSdCardUsable(sd::SdCard::SLOT_0)) { @@ -1254,7 +1255,6 @@ void CoreController::performMountedSdCardOperations() { if (clearOneShotFlag) { performOneShotSdCardOpsSwitch = true; } - timeFileHandler(); } ReturnValue_t CoreController::performSdCardCheck() {