]> git.donarmstrong.com Git - qmk_firmware.git/commit
Fix RGBLIGHT startup color (#1975)
authordrashna <drashna@live.com>
Mon, 6 Nov 2017 16:43:38 +0000 (08:43 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 9 Nov 2017 22:57:42 +0000 (14:57 -0800)
commitf6588e3dfe3b04808de4f6b2c8b94e5904453f65
tree31811dfb7b9b98010b3aa565f97b3fa4618e8372
parent293ec5b51239e30601c602f2d2cceacfa95d6e5e
Fix RGBLIGHT startup color (#1975)

* Fix RGBLIGHT startup color

While it's awesome to see the layer indicating code in here (no really!), and the general rule is to not alter the default keymap/code....

The problem with the layer_state_set_kb call handling this, is that the code doesn't seem to be called at startup.  So the default layer color won't ever get set on startup.  It needs to be called in the init function to be properly set.

I've played with this extensively, and if you check my keymaps, that is precisely why I have the setrgb/sethsv in the init function.

* Removed typo (pipe)
keyboards/ergodox_ez/keymaps/default/keymap.c