]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix Clicky Down code
authorDrashna Jaelre <drashna@live.com>
Sat, 28 Apr 2018 09:12:25 +0000 (02:12 -0700)
committerJack Humbert <jack.humb@gmail.com>
Sat, 28 Apr 2018 15:50:02 +0000 (11:50 -0400)
quantum/process_keycode/process_clicky.c

index 2b9d8a0f76a646b10fcbfbb76e72ffe447993fb5..f445751e0f15f42138a6291e8b7ab0eb7dd01b20 100644 (file)
@@ -52,7 +52,7 @@ bool process_clicky(uint16_t keycode, keyrecord_t *record) {
         clicky_freq = new_freq;
       }
     }
-    if (keycode == CLICKY_TOGGLE && record->event.pressed) {
+    if (keycode == CLICKY_DOWN && record->event.pressed) {
       float new_freq = clicky_freq / AUDIO_CLICKY_FREQ_FACTOR;
       if (new_freq > AUDIO_CLICKY_FREQ_MIN) {
         clicky_freq = new_freq;