-
Notifications
You must be signed in to change notification settings - Fork 112
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
Fix LED bar flickers #138
Fix LED bar flickers #138
Conversation
if (configuration.isLedBarModeChanged()) { | ||
Serial.println("Set 'ledBarMode' " + String(configuration.getLedBarMode())); | ||
Serial.println("Get 'ledBarBrightness' " + String(configuration.getLedBarBrightness())); | ||
if (configuration.getLedBarBrightness() == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the code is redundant to what we have on line 843 onwards?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes a bit of same.
at 843: focus to set brightness
at 849: focus to enable/disable LED bar.
examples/OneOpenAir/OneOpenAir.ino
Outdated
if (configuration.getLedBarMode() != LedBarMode::LedBarModeOff) { | ||
ag->ledBar.setEnable(true); | ||
} | ||
ag->ledBar.setBrighness(configuration.getLedBarBrightness()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setBrighness -> setBrightness
examples/OneOpenAir/OneOpenAir.ino
Outdated
String(configuration.getLedBarBrightness())); | ||
} | ||
|
||
if (configuration.isLedBarModeChanged()) { | ||
Serial.println("Set 'ledBarMode' " + String(configuration.getLedBarMode())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do not really "set" the ledBarMode then later on?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I'll remove it. It's just for test.
No description provided.