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

Why this equation in the channel const? #70

Open
damccull opened this issue Jan 3, 2023 · 0 comments
Open

Why this equation in the channel const? #70

damccull opened this issue Jan 3, 2023 · 0 comments

Comments

@damccull
Copy link

damccull commented Jan 3, 2023

What is the purpose of this equation in the channel const I the DmxSerialRecv.ino example line 29?

const int startChannel = 0 * 3 + 1;

Doesn't this just get compiler optimized to 1, then further optimized into individual values and inlined further down where it's used?

What does this do?

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