Skip to content
Commit 71bd63d0 authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Maureen Helm
Browse files

sensor: bq274xx: fix few parameter calculations



Fix the calculation for designenergy_mwh, as right now it's using a
float casted straight to an int, which results in the factor rounded
from 3.7 to 3. Also rework both that and taperrate so that they don't
use floating point.

Signed-off-by: default avatarFabio Baltieri <fabiobaltieri@google.com>
parent 35bb28ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment