]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keymap] Fix rgblight_enable ifdefs (#5283)
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>
Fri, 1 Mar 2019 16:33:29 +0000 (08:33 -0800)
committerDrashna Jaelre <drashna@live.com>
Fri, 1 Mar 2019 16:33:29 +0000 (08:33 -0800)
users/mechmerlin/changelog.md
users/mechmerlin/config.h

index d5877cfdfecff2ca9a38b754c10d2c49be886b18..ec4b20108f787e80f8c25980252ecc85fe31787c 100644 (file)
@@ -1,10 +1,13 @@
 # Changelog
 All notable changes to my userspace will be documented in this file.
 
+## [0.2.1] - 2019-03-01
+### Fixed
+- `config.h` usage of `#ifdef RGBLIGHT_ENABLE` caused problems for other of my boards that had `RGBLIGHT_ENABLE`.  
+
 ## [0.2.0] - 2019-02-27
 ### Changed
 - Moved `AUDIO_CLICKY` from community layout `66_ansi` into user space. 
-- 
 
 ## [0.1.1] - 2018-10-26
 ### Added
index 3c45162bcccf7ae5019c45413d364b6913117837..9ca39a12ac6e3eea7abc7e6c50a8d9b37f461048 100644 (file)
 
 // Enable features depending on keyboard
 #if defined(KEYBOARD_clueboard_66_hotswap_prototype)
-    #define RGBLIGHT_ENABLE
-    #define AUDIO_CLICKY
+    #ifndef RGBLIGHT_ENABLE
+        #define RGBLIGHT_ENABLE
+    #endif
+
+    #ifndef AUDIO_CLICKY
+        #define AUDIO_CLICKY
+    #endif
+
 #elif defined(KEYBOARD_clueboard_66_hotswap_gen1)
-    #define AUDIO_CLICKY
+    #ifndef AUDIO_CLICKY
+        #define AUDIO_CLICKY
+    #endif
 #else
-    #define RGBLIGHT_ENABLE
+    #ifndef RGBLIGHT_ENABLE
+        #define RGBLIGHT_ENABLE
+    #endif
 #endif