Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Channel-Source and Target information #1595

Merged
merged 11 commits into from
Aug 20, 2021

Conversation

sfeilmeier
Copy link
Contributor

@sfeilmeier sfeilmeier commented Aug 20, 2021

Fixes Soltaro Cluster C Channel-Source error and improves general logic

@sfeilmeier sfeilmeier changed the title Soltaro Cluster C: fix Channel-Source error Refactor Channel-Source and Target information Aug 20, 2021
@sfeilmeier sfeilmeier merged commit 2e6d628 into develop Aug 20, 2021
@sfeilmeier sfeilmeier deleted the feature/soltaro-cluster-c-channelsource branch August 20, 2021 16:32
sfeilmeier added a commit that referenced this pull request Aug 23, 2021
The Channel Source and Target information introduced in #1595 was not working, because Read-Write-Channel information would always be considered a 'target' information. This Pull-Request refactors the information to a generic MetaInfo and allows explicit definition of different read- and write-registers for one Channel
clehne pushed a commit to clehne/openems that referenced this pull request Sep 12, 2021
* Refactor ChannelSource

- Use actual Channel object for storage, to avoid problems with static enums
- Separate Read-Source and Write-Target

* Soltaro Cluster C: fix duplicated source
* Add Battery-Protection as source for Battery ChargeMaxCurrent/DischargeMaxCurrent
* Improve error message for duplicated source/target
* Weidmüller Meter: fix register mapping
clehne pushed a commit to clehne/openems that referenced this pull request Sep 12, 2021
The Channel Source and Target information introduced in OpenEMS#1595 was not working, because Read-Write-Channel information would always be considered a 'target' information. This Pull-Request refactors the information to a generic MetaInfo and allows explicit definition of different read- and write-registers for one Channel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant