Skip to content

Commit

Permalink
Merge pull request #503 from virtualj/patch-1
Browse files Browse the repository at this point in the history
fix: dont stop charge when charge level ==100
  • Loading branch information
flobz committed Apr 13, 2023
2 parents 73cbff0 + c3cc336 commit df13ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psa_car_controller/psacc/application/charge_control.py
Expand Up @@ -88,7 +88,7 @@ def process(self):
if status == INPROGRESS:
logger.info("charging status of %s is %s, battery level: %d", self.vin, status, level)
self.force_update(vehicle_status)
if hit_threshold and self.retry_count < 2:
if has_threshold and hit_threshold and self.retry_count < 2:
logger.info("Charge threshold is reached, stop the charge")
self.control_charge_with_ack(False)
elif self._next_stop_hour is not None:
Expand Down

0 comments on commit df13ff5

Please sign in to comment.