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

Enhancement: Improvement to state system #7

Open
cjavad opened this issue May 17, 2024 · 0 comments
Open

Enhancement: Improvement to state system #7

cjavad opened this issue May 17, 2024 · 0 comments

Comments

@cjavad
Copy link
Member

cjavad commented May 17, 2024

To address certain issues:

  • Fix partially cleared events (has_changed) removing the dirty event and never getting retriggered.
  • In combination with intervals when a value is only pushed when it is changed we need a way to automatically re-dirty an event after the interval has passed.
  • When a field is a float, but it is only sent as a integer, either support floored diffing or conversion to not trigger events when the proposed value is actually the same as the last sent value in reality. (Ei. temperature)

Rework internal state system to make printer status more efficient and accurate and prevent bugs long term. See the state_effect branch for a WIP model.

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

No branches or pull requests

1 participant