summaryrefslogtreecommitdiff
path: root/tmk_core/common
diff options
context:
space:
mode:
authorzvecr <git@zvecr.com>2020-05-02 22:44:36 +0100
committerDrashna Jael're <drashna@live.com>2020-08-08 20:59:30 -0700
commit9e607a70aed0b6245e693acb77232809df0ffea4 (patch)
tree029e57e4cef617e4108ed4a2e569e869d6404e1d /tmk_core/common
parentc759836a16b6035a8c2ef94475d270f1683ae7dc (diff)
Move encoder_read to common location (qmk#9003)
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/keyboard.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c
index 1d0307f2a3..cbf6048c8d 100644
--- a/tmk_core/common/keyboard.c
+++ b/tmk_core/common/keyboard.c
@@ -53,6 +53,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef RGBLIGHT_ENABLE
# include "rgblight.h"
#endif
+#ifdef ENCODER_ENABLE
+# include "encoder.h"
+#endif
#ifdef STENO_ENABLE
# include "process_steno.h"
#endif
@@ -254,6 +257,9 @@ void keyboard_init(void) {
#ifdef RGBLIGHT_ENABLE
rgblight_init();
#endif
+#ifdef ENCODER_ENABLE
+ encoder_init();
+#endif
#ifdef STENO_ENABLE
steno_init();
#endif
@@ -354,6 +360,10 @@ MATRIX_LOOP_END:
# endif
#endif
+#ifdef ENCODER_ENABLE
+ encoder_read();
+#endif
+
#ifdef QWIIC_ENABLE
qwiic_task();
#endif