From 77a555debc13ba746a6001d97f3120209d232a8f Mon Sep 17 00:00:00 2001 From: meggert Date: Wed, 18 Oct 2023 11:00:43 +0200 Subject: [PATCH] small improvement --- mission/controller/PowerController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mission/controller/PowerController.cpp b/mission/controller/PowerController.cpp index e2862b80..f8a02c09 100644 --- a/mission/controller/PowerController.cpp +++ b/mission/controller/PowerController.cpp @@ -287,7 +287,7 @@ ReturnValue_t PowerController::calculateOpenCircuitVoltageCharge() { ReturnValue_t PowerController::calculateCoulombCounterCharge() { double timeDiff = 0.0; - if (timevalOperations::toDouble(oldTime) != 0) { + if (oldTime.tv_sec != 0) { timeDiff = timevalOperations::toDouble(now - oldTime); } else { return returnvalue::FAILED;