This commit is contained in:
parent
8d8eb6bd88
commit
77a555debc
@ -287,7 +287,7 @@ ReturnValue_t PowerController::calculateOpenCircuitVoltageCharge() {
|
|||||||
|
|
||||||
ReturnValue_t PowerController::calculateCoulombCounterCharge() {
|
ReturnValue_t PowerController::calculateCoulombCounterCharge() {
|
||||||
double timeDiff = 0.0;
|
double timeDiff = 0.0;
|
||||||
if (timevalOperations::toDouble(oldTime) != 0) {
|
if (oldTime.tv_sec != 0) {
|
||||||
timeDiff = timevalOperations::toDouble(now - oldTime);
|
timeDiff = timevalOperations::toDouble(now - oldTime);
|
||||||
} else {
|
} else {
|
||||||
return returnvalue::FAILED;
|
return returnvalue::FAILED;
|
||||||
|
Loading…
Reference in New Issue
Block a user