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

Fix zero reading if ActivePower if not checked before checking Current #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pm73
Copy link

@pm73 pm73 commented Sep 15, 2019

I noticed that if I read only "getApparentPower()" and "getVoltage()" there will by always zero returned by "getApparentPower()".
It seems that "_power" is not updated automatically other than by "getActivePower()" (or by functions which run "getActivePower()" like "getCurrent()" "getReactivePower()" or "getPowerFactor()").

This change makes sure that the "_power" value is updated and it fixed issue for me.

How to reproduce issue:
Try to measure "getApparentPower()" without checking other values.

@pm73
Copy link
Author

pm73 commented Oct 12, 2019

@xoseperez any comments?

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.

1 participant