Qmk_firmware: Backlight flashing on xd60 after #2187

Created on 5 Jan 2018  路  3Comments  路  Source: qmk/qmk_firmware

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

bug good first issue help wanted

Most helpful comment

Same issue on my xd75 as well. Resetting back to commit d6215ad6aff3857cea8a6877b56a547a76ab13ac, 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.

All 3 comments

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?

Same issue on my xd75 as well. Resetting back to commit d6215ad6aff3857cea8a6877b56a547a76ab13ac, 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.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

henrebotha picture henrebotha  路  4Comments

Frefreak picture Frefreak  路  4Comments

vokeio picture vokeio  路  3Comments

matz-e picture matz-e  路  4Comments

MarkuBu picture MarkuBu  路  3Comments