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;