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

Fix LED bar flickers #138

Merged
merged 3 commits into from
May 29, 2024
Merged

Fix LED bar flickers #138

merged 3 commits into from
May 29, 2024

Conversation

pnt325
Copy link
Collaborator

@pnt325 pnt325 commented May 17, 2024

No description provided.

if (configuration.isLedBarModeChanged()) {
Serial.println("Set 'ledBarMode' " + String(configuration.getLedBarMode()));
Serial.println("Get 'ledBarBrightness' " + String(configuration.getLedBarBrightness()));
if (configuration.getLedBarBrightness() == 0) {
Copy link
Collaborator

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?

Copy link
Collaborator Author

@pnt325 pnt325 May 17, 2024

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.

@pnt325 pnt325 requested a review from nick-4711 May 20, 2024 09:17
if (configuration.getLedBarMode() != LedBarMode::LedBarModeOff) {
ag->ledBar.setEnable(true);
}
ag->ledBar.setBrighness(configuration.getLedBarBrightness());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setBrighness -> setBrightness

@pnt325 pnt325 requested a review from nick-4711 May 22, 2024 04:17
String(configuration.getLedBarBrightness()));
}

if (configuration.isLedBarModeChanged()) {
Serial.println("Set 'ledBarMode' " + String(configuration.getLedBarMode()));
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@pnt325 pnt325 merged commit 4d883af into develop May 29, 2024
16 checks passed
@pnt325 pnt325 deleted the hotfix/ledbar-flickers branch May 29, 2024 01:01
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

Successfully merging this pull request may close these issues.

2 participants