Skip to content

phase switch: fix reset phase switch delay - #3459

Merged
LKuemmel merged 1 commit into
openWB:masterfrom
LKuemmel:fix_phase_switch
Jun 3, 2026
Merged

phase switch: fix reset phase switch delay#3459
LKuemmel merged 1 commit into
openWB:masterfrom
LKuemmel:fix_phase_switch

Conversation

@LKuemmel

@LKuemmel LKuemmel commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes reset_phase_switch_delay() so it only resets the phase-switch delay (timestamps, state, and reserved surplus power) when the chargepoint is actually in PHASE_SWITCH_DELAY, preventing the reserved-power rollback code from being skipped.

Changes:

  • Guard reset_phase_switch_delay() logic with if control_parameter.state == ChargepointState.PHASE_SWITCH_DELAY.
  • Ensure reserved surplus power is only released when a phase-switch delay was active (and only for the 1→3 phase-switch direction where power was reserved).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@LKuemmel
LKuemmel merged commit 5e9eb4d into openWB:master Jun 3, 2026
1 check passed
@LKuemmel
LKuemmel deleted the fix_phase_switch branch June 3, 2026 09:47
LKuemmel added a commit to LKuemmel/core that referenced this pull request Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants