summaryrefslogtreecommitdiff
path: root/keyboards/preonic/keymaps
diff options
context:
space:
mode:
authornopjmp <kthompson@hey.com>2021-06-19 21:20:50 -0500
committerGitHub <noreply@github.com>2021-06-19 19:20:50 -0700
commit050457818c8c8710124d1aba454f80260c57ae7f (patch)
treeadce641c43e823d7561184c3f3fc3c6b97ff4fbe /keyboards/preonic/keymaps
parent1f4e20cfdacc913b7d06fcd4533b92e8317e4504 (diff)
[Keymap] Fix Preonic rev3 default keymap (#12698)
The rev3 boards use RGBLIGHT_ENABLE now instead of BACKLIGHT_ENABLE. This resolves the issue of flashing and losing functionality with the default keymap.
Diffstat (limited to 'keyboards/preonic/keymaps')
-rw-r--r--keyboards/preonic/keymaps/default/keymap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/keyboards/preonic/keymaps/default/keymap.c b/keyboards/preonic/keymaps/default/keymap.c
index 078ab27265..b70aa31c14 100644
--- a/keyboards/preonic/keymaps/default/keymap.c
+++ b/keyboards/preonic/keymaps/default/keymap.c
@@ -212,6 +212,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#ifdef BACKLIGHT_ENABLE
backlight_step();
#endif
+ #ifdef RGBLIGHT_ENABLE
+ rgblight_step();
+ #endif
#ifdef __AVR__
writePinLow(E6);
#endif