Skip to content

Commit

Permalink
fix error stemming from refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mosc5 committed Jan 26, 2024
1 parent 2e01981 commit e435fab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simbev/car.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,11 @@ def charge(
else:
charging_time = 0

park_time = charging_time if charging_type == "fast" and charging_time > 0 else trip.park_time
self._update_activity(
trip.park_timestamp,
trip.park_start,
trip.park_time,
park_time,
nominal_charging_capacity=power,
charging_power=avg_power,
charging_use_case=charging_use_case,
Expand Down

0 comments on commit e435fab

Please sign in to comment.