Skip to content

Commit

Permalink
Consider only usable battery (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
tma authored Jul 18, 2022
1 parent 130ee28 commit 9558a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/car.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func updateCarAbrpData(car *Car, topic string, payload string) {
car.abrpData["ideal_battery_range"] = payload
case "est_battery_range_km":
car.abrpData["battery_range"] = payload
case "battery_level":
case "usable_battery_level":
car.abrpData["soc"] = payload
case "charge_energy_added":
car.abrpData["kwh_charged"] = payload
Expand Down

0 comments on commit 9558a5c

Please sign in to comment.