aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-06-03 00:54:53 +0100
committerGitHub <noreply@github.com>2020-06-03 00:54:53 +0100
commitd17572b125113928b56e19bfaefae5d13a912f5e (patch)
tree76bfa45b253f28361da86f5d902103022fc57f85 /tmk_core
parent517d607fa4292a03fb8a880a07d27cb14020ed1d (diff)
parent406dc2fb2d1e657db2d7235885722dd86d07ea08 (diff)
downloadfirmware-d17572b125113928b56e19bfaefae5d13a912f5e.tar.gz
firmware-d17572b125113928b56e19bfaefae5d13a912f5e.tar.bz2
firmware-d17572b125113928b56e19bfaefae5d13a912f5e.zip
Move encoder_read to common location (#9003)
Diffstat (limited to 'tmk_core')
-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 e2110363a..714c3d048 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
@@ -259,6 +262,9 @@ void keyboard_init(void) {
#ifdef RGBLIGHT_ENABLE
rgblight_init();
#endif
+#ifdef ENCODER_ENABLE
+ encoder_init();
+#endif
#ifdef STENO_ENABLE
steno_init();
#endif
@@ -359,6 +365,10 @@ MATRIX_LOOP_END:
# endif
#endif
+#ifdef ENCODER_ENABLE
+ encoder_read();
+#endif
+
#ifdef QWIIC_ENABLE
qwiic_task();
#endif