-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuel_gauge: composite: cached voltage for SoC
Cache the voltage queried from `FUEL_GAUGE_VOLTAGE` for immediate use in `FUEL_GAUGE_ABSOLUTE_STATE_OF_CHARGE` if the second call occurs within a short delay of the first call. This eliminates small mismatches between voltage and SoC values when queried back to back due to noise on the voltage measurement. Signed-off-by: Jordan Yates <jordan@embeint.com>
- Loading branch information
1 parent
99a63a7
commit 2dcae04
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters