Skip to content

Fix parsing of clock status for non specified (0xFF) value #42

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

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

Conversation

i96751414
Copy link

Blue book states that 0xFF means non specified. As such, this should be considered as ClockStatus.OK

@gurux-kurumi
Copy link

Hi,

It is crucial to determine whether the meter has set a non-specified value. This indicates that the meter is not using the value, and its meaning differs from "OK". With your change, it will no longer be possible to write the value back to the meter because Several meters ignore the status field, and the write operation fails if the status flag differs from 0xFF.

Therefore, this change cannot be accepted.

BR,
Mikko

@i96751414 i96751414 force-pushed the fix-clock-statues-parsing branch from 5415fce to 322829a Compare April 24, 2025 11:23
@i96751414
Copy link
Author

Hi Mikko,

Thank you for the reply.

I have changed the PR according to your comment.

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