mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Pre-commit fix
This commit is contained in:
parent
3b8ec12ab8
commit
757e8d0b55
1 changed files with 6 additions and 5 deletions
|
@ -188,7 +188,8 @@ void update_values_leaf_battery() { /* This function maps all the values fetched
|
||||||
|
|
||||||
remaining_capacity_Wh = LB_Wh_Remaining;
|
remaining_capacity_Wh = LB_Wh_Remaining;
|
||||||
|
|
||||||
LB_Power = ((LB_Total_Voltage2 * LB_Current2) / 4); //P = U * I (Both values are 0.5 per bit so the math is non-intuitive)
|
LB_Power =
|
||||||
|
((LB_Total_Voltage2 * LB_Current2) / 4); //P = U * I (Both values are 0.5 per bit so the math is non-intuitive)
|
||||||
stat_batt_power = convert2unsignedint16(LB_Power); //add sign if needed
|
stat_batt_power = convert2unsignedint16(LB_Power); //add sign if needed
|
||||||
|
|
||||||
//Update temperature readings. Method depends on which generation LEAF battery is used
|
//Update temperature readings. Method depends on which generation LEAF battery is used
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue