Reset time-since-update if the tracked value is nonmonotonic
The absence of this reset led to timeInStateSinceUpdate exceeding total timeSinceUpdate. This resulted in inflated counts, which are smeared using the `delta * timeInState / timeSinceUpdate` formula. So, instead of assigning a portion of the time to a specific state it would assign a multiple of the time to it. Bug: 204087731 Test: atest libbattery_test Change-Id: I7805d5c6aa314f4030c8a1ac9541f2d439a471cb
Loading
Please register or sign in to comment