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: Group-Object _commFlag != Uninitialized does NOT Guarantee an Actual Initialization #279

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cornelius-koepp
Copy link
Contributor

@cornelius-koepp cornelius-koepp commented Feb 12, 2024

Issue:

The differentiation between uninitialized and initialized state can NOT be represented correctly in ComFlag alone:

it might be in state Transmitting during a ReadRequest on startup while value is still not valid

Solution:

Add a separate uninitialized flag to overcome the limitations of ComFlag.

Compatibility:

  • We use MSB to store uninitialized state and keep the size of GroupObject the same saving memory resources.
  • The old uninitialized handling is not changed for compatibility reasons.

Tested Platforms:

  • RP2040

No Issues Reported

  • SAMD
  • ESP32

Waldemar Porscha and others added 4 commits February 12, 2024 16:05
- old implementation is still there for compatibility reasons
- new implementation reflects the case "uninitialized while transmitting"
- Just states "Updated", "WriteRequest" and "Ok" remove uninitialized state
@cornelius-koepp
Copy link
Contributor Author

No abnormalities reported for SAMD and ESP32; removing draft state.

@cornelius-koepp cornelius-koepp marked this pull request as ready for review February 25, 2024 21:03
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.

None yet

1 participant