Once upon a time Robin was made happy #800
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user