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

question calculateMax #4

Open
kuradi opened this issue Oct 21, 2019 · 0 comments
Open

question calculateMax #4

kuradi opened this issue Oct 21, 2019 · 0 comments

Comments

@kuradi
Copy link

kuradi commented Oct 21, 2019

`void calculateMax()
{
#if ZONEONE == 1
maxLEDs = FIRSTZONE_LEDS;
#endif

#if ZONETWO == 1
maxLEDs = max(FIRSTZONE_LEDS, SECONDZONE_LEDS);
#endif

#if ZONETHREE == 1
maxLEDs = max(maxLEDs, THIRDZONE_LEDS);
#endif

#if ZONEFOUR == 1
maxLEDs = max(maxLEDs, FOURTHZONE_LEDS);
#endif

#if ZONEFIVE == 1
maxLEDs = max(maxLEDs, FIFTHZONE_LEDS);
#endif

#if ZONESIX == 1
maxLEDs = max(maxLEDs, SIXTHZONE_LEDS);
#endif
}`

just checked code and noticed that when zonethree, zonefour etc max( starts with phrase "maxLEDs", then zonetwo starts with phrase "FIRSTZONE_LEDS".
is it typeo or it should be this way?

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