I used the filenames encoder.c and encoder.h in my userspace, which conflicts with QMK core, whoops

This commit is contained in:
Sadek Baroudi 2021-08-11 10:19:37 -07:00
parent 9dde29b829
commit 193b5f0abd
3 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#include "encoder.h"
#include "encoder_stuff.h"
__attribute__((weak)) bool encoder_update_keymap(uint8_t index, bool clockwise) { return true; }
@ -37,11 +37,10 @@ void encoder_update_user(uint8_t index, bool clockwise) {
#endif
}
else{
tap_code16(C(KC_LEFT));
#ifdef RGBLIGHT_ENABLE
rgblight_step_reverse();
#else
tap_code16(C(KC_RGHT));
tap_code16(C(KC_LEFT));
#endif
}
#ifdef RGBLIGHT_ENABLE

View File

@ -55,7 +55,7 @@ ifeq ($(strip $(RAW_ENABLE)), yes)
endif
ifeq ($(strip $(ENCODER_ENABLE)), yes)
SRC += encoder.c
SRC += encoder_stuff.c
endif
ifeq ($(strip $(CASEMODES_ENABLE)), yes)