Skip to content

Commit

Permalink
Fix battery range data mapping (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
tma authored Jul 18, 2022
1 parent 9558a5c commit d017cb0
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 @@ -72,7 +72,7 @@ func updateCarAbrpData(car *Car, topic string, payload string) {
case "ideal_battery_range_km":
car.abrpData["ideal_battery_range"] = payload
case "est_battery_range_km":
car.abrpData["battery_range"] = payload
car.abrpData["est_battery_range"] = payload
case "usable_battery_level":
car.abrpData["soc"] = payload
case "charge_energy_added":
Expand Down

0 comments on commit d017cb0

Please sign in to comment.