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

Huawei AC charger: prevent setting current limit when internal power control mode is enabled #521

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

MalteSchm
Copy link

The Huawei PSU currently allows setting current / voltage values externally when running in internal power control mode. This leads e.g. to current limits received via MQTT being applied for a brief time until they're being changed again by the power control in HuaweiCanClass. In my specific case I started to control the operation mode externally which resulted in frequent on/off switches.
This PR makes the original setValue method private (renamed to _setValue) and adds a new public setValue method that includes a check / rejects changes in this case.

…ng values when internal power control mode is enabled
@MalteSchm
Copy link
Author

MalteSchm commented Oct 28, 2023

Not sure why the build failed. I did see a message about PlatformIO update though. Wonder if that could have had side effects.

@helgeerbe helgeerbe merged commit 3dceddf into hoylabs:development Nov 15, 2023
@helgeerbe
Copy link
Collaborator

I opened an issue tbnobody#1500 for the failed build and fixed it with an workaround in our repo

@MalteSchm MalteSchm deleted the fix_set_value_int_auto branch March 11, 2024 08:34
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants