Skip to content

Commit

Permalink
fix: variable access before declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
tpd-opitz committed Mar 7, 2024
1 parent 64c44ff commit 79e5664
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/control/ev.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ def get_required_current(self,
used_amount,
max_phases_hw,
phase_switch_supported)
soc_request_intervall_offset = 0
if plan_data:
name = self.charge_template.data.chargemode.scheduled_charging.plans[plan_data.num].name
# Wenn mit einem neuen Plan geladen wird, muss auch die Energiemenge von neuem gezählt werden.
Expand All @@ -273,8 +274,6 @@ def get_required_current(self,
self.charge_template.data.chargemode.
scheduled_charging.plans[plan_data.num].limit.selected == "soc"):
soc_request_intervall_offset = self.soc_module.general_config.request_interval_charging
else:
soc_request_intervall_offset = 0
control_parameter.current_plan = name
else:
control_parameter.current_plan = None
Expand Down

0 comments on commit 79e5664

Please sign in to comment.