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

bug in example-controller causing channel jump #9

Open
miflck opened this issue May 2, 2018 · 0 comments
Open

bug in example-controller causing channel jump #9

miflck opened this issue May 2, 2018 · 0 comments

Comments

@miflck
Copy link

miflck commented May 2, 2018

I think there is a bug in example-controller at line 47 causing to jump over every 3th channel. Its one channel++ too much...
This:

	for(int module = 1; module <= modules; module++) {
        dmx.setLevel(channel++, red[module]*255);
		dmx.setLevel(channel++, green[module]*255);
		dmx.setLevel(channel++, blue[module]*255);
		channel++;
	}

should be

	for(int module = 1; module <= modules; module++) {
        dmx.setLevel(channel++, red[module]*255);
		dmx.setLevel(channel++, green[module]*255);
		dmx.setLevel(channel++, blue[module]*255);
	}
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