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

Backlight flashing on xd60 after #2187 #2226

Closed
michaeldauria opened this issue Jan 5, 2018 · 3 comments
Closed

Backlight flashing on xd60 after #2187 #2226

michaeldauria opened this issue Jan 5, 2018 · 3 comments

Comments

@michaeldauria
Copy link

After flashing #2187, my backlight constantly flashes while on on my xd64. Once I revert the offending commit, everything works as expected.

I tried playing around with some settings, but ultimately I could not get it to work properly.

Thanks,

Michael

@JonasGe
Copy link

JonasGe commented Jan 17, 2018

I am having the same issue on my XD75.

The backlight LEDs are on pin F5. Decreasing the BL level with BL_DEC eventually turns off the LEDs. BL_TOG and BL_INC don't do anything other than turning the LEDs back on. BL_INC isn't supposed to do any dimming/brightening as pin F5 of the ATMega32u4 is no PWM pin but I suppose BL_TOG should also be able to turn the LEDs off?

@krohmag
Copy link

krohmag commented Jan 20, 2018

Same issue on my xd75 as well. Resetting back to commit d6215ad, the commit before #2187, resolved my issue as well, but that didn't satisfy me.

Going through #2187, the issue is line 907 in quantum/quantum.c - order of operations wasn't followed like it was in the previous commit.
The line was previously backlight_tick = (backlight_tick + 1) % 16; but #2187 drops the parenthesis. Essentially, the issue comes down to bad math. After adding the parenthesis back in, I can run off of master without an issue.

@skullydazed
Copy link
Member

This looks like a simple patch. Would someone like to put a PR together and we'll get it merged in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants