From 8a90f0025b08c3711d6632f919ba3a2660ade711 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Wed, 11 May 2022 17:01:03 +0200 Subject: [PATCH] commented in time file write --- bsp_q7s/core/CoreController.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bsp_q7s/core/CoreController.cpp b/bsp_q7s/core/CoreController.cpp index 0d166600..208999c2 100644 --- a/bsp_q7s/core/CoreController.cpp +++ b/bsp_q7s/core/CoreController.cpp @@ -1708,11 +1708,11 @@ ReturnValue_t CoreController::timeFileHandler() { } std::string fileName = currMntPrefix + TIME_FILE; std::ofstream timeFile(fileName); -// if (not timeFile.good()) { -// sif::error << "CoreController::timeFileHandler: Error opening time file: " << strerror(errno) -// << std::endl; -// return RETURN_FAILED; -// } + if (not timeFile.good()) { + sif::error << "CoreController::timeFileHandler: Error opening time file: " << strerror(errno) + << std::endl; + return RETURN_FAILED; + } timeFile << "UNIX SECONDS: " << currentTime.tv_sec << std::endl; } return RETURN_OK;