Răsfoiți Sursa

[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.
nopjmp 4 ani în urmă
părinte
comite
050457818c
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      keyboards/preonic/keymaps/default/keymap.c

+ 3 - 0
keyboards/preonic/keymaps/default/keymap.c

@@ -212,6 +212,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
             #ifdef BACKLIGHT_ENABLE
             #ifdef BACKLIGHT_ENABLE
               backlight_step();
               backlight_step();
             #endif
             #endif
+            #ifdef RGBLIGHT_ENABLE
+              rgblight_step();
+            #endif
             #ifdef __AVR__
             #ifdef __AVR__
             writePinLow(E6);
             writePinLow(E6);
             #endif
             #endif