Skip to content

[Edge] EVCS Mennekes: replace handling of phase-rotated wiring#3208

Merged
sfeilmeier merged 3 commits intoOpenEMS:developfrom
Sn0w3y:patch-14
Jul 1, 2025
Merged

[Edge] EVCS Mennekes: replace handling of phase-rotated wiring#3208
sfeilmeier merged 3 commits intoOpenEMS:developfrom
Sn0w3y:patch-14

Conversation

@Sn0w3y
Copy link
Copy Markdown
Collaborator

@Sn0w3y Sn0w3y commented Jun 23, 2025

  1. Replacing the deprecated mapLongToPhaseRotatedCurrentChannel calls with direct channel mapping using this.getPhaseRotation().channelCurrentL1(), channelCurrentL2(), and channelCurrentL3()
  2. Removing the unused import for mapLongToPhaseRotatedCurrentChannel

The new approach directly maps the Modbus register values to the appropriate current channels based on the configured phase rotation, which is cleaner and follows the recommended pattern.

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 23, 2025

Codecov Report

Attention: Patch coverage is 70.58824% with 10 lines in your changes missing coverage. Please review.

❌ Your patch status has failed because the patch coverage (70.59%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #3208      +/-   ##
=============================================
+ Coverage      59.13%   59.15%   +0.02%     
  Complexity       139      139              
=============================================
  Files           2682     2682              
  Lines         115850   115840      -10     
  Branches        8533     8533              
=============================================
+ Hits           68501    68512      +11     
+ Misses         44787    44770      -17     
+ Partials        2562     2558       -4     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@sfeilmeier sfeilmeier left a comment

Choose a reason for hiding this comment

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

Thanks. I did some more cleanup

@sfeilmeier sfeilmeier merged commit 05faef0 into OpenEMS:develop Jul 1, 2025
6 of 7 checks passed
@sfeilmeier sfeilmeier changed the title Replace deprecated mapLongToPhaseRotatedCurrentChannel calls with proper channel mapping [Edge] EVCS Mennekes: replace handling of phase-rotated wiring Jul 1, 2025
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