aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorzvecr <git@zvecr.com>2020-05-02 22:44:36 +0100
committerzvecr <git@zvecr.com>2020-05-02 22:44:36 +0100
commit406dc2fb2d1e657db2d7235885722dd86d07ea08 (patch)
tree3f58907a434ef2cb5ce129489a6212d936eae75d /tmk_core
parente182a38e7c63179f11c94cd7d59f9bac829b85a8 (diff)
downloadfirmware-406dc2fb2d1e657db2d7235885722dd86d07ea08.tar.gz
firmware-406dc2fb2d1e657db2d7235885722dd86d07ea08.tar.bz2
firmware-406dc2fb2d1e657db2d7235885722dd86d07ea08.zip
Move encoder_read to common location
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 a767d9c87..200b1e872 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
@@ -249,6 +252,9 @@ void keyboard_init(void) {
#ifdef RGBLIGHT_ENABLE
rgblight_init();
#endif
+#ifdef ENCODER_ENABLE
+ encoder_init();
+#endif
#ifdef STENO_ENABLE
steno_init();
#endif
@@ -345,6 +351,10 @@ MATRIX_LOOP_END:
# endif
#endif
+#ifdef ENCODER_ENABLE
+ encoder_read();
+#endif
+
#ifdef QWIIC_ENABLE
qwiic_task();
#endif