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

Apply effect only during update #86

Open
sofian opened this issue Jan 16, 2024 · 0 comments
Open

Apply effect only during update #86

sofian opened this issue Jan 16, 2024 · 0 comments
Assignees
Labels

Comments

@sofian
Copy link
Collaborator

sofian commented Jan 16, 2024

If one writes the following code:

DigitalOut led(13);
...

void step() {
  led.on();
  led.off();
}

Then the LED will be at 50% but I think only the last call should apply (ie. led.off() in this case). Otherwise it could be confusing.

@sofian sofian added the bug label Jan 16, 2024
@sofian sofian self-assigned this Jan 16, 2024
@sofian sofian changed the title Apply effect only during update() Apply effect only during update Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant