Skip to content

Commit

Permalink
Merge pull request #1280 from LKuemmel/fix
Browse files Browse the repository at this point in the history
fix soc set to 0
  • Loading branch information
LKuemmel authored Nov 27, 2023
2 parents 29390f5 + f6ba7cb commit 1ce2226
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/modules/common/configurable_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ def update(self, vehicle_update_data: VehicleUpdateData):

if source != SocSource.CALCULATION:
# Wenn nicht berechnet wurde, SoC als Start merken.
if self.calculated_soc_state.soc_start != car_state.soc:
self.calculated_soc_state.imported_start = vehicle_update_data.imported
self.calculated_soc_state.imported_start = vehicle_update_data.imported
self.calculated_soc_state.soc_start = car_state.soc
Pub().pub(f"openWB/set/vehicle/{self.vehicle}/soc_module/calculated_soc_state",
asdict(self.calculated_soc_state))
Expand Down

0 comments on commit 1ce2226

Please sign in to comment.