diff options
| author | zvecr <git@zvecr.com> | 2020-05-02 22:44:36 +0100 |
|---|---|---|
| committer | zvecr <git@zvecr.com> | 2020-05-02 22:44:36 +0100 |
| commit | 406dc2fb2d1e657db2d7235885722dd86d07ea08 (patch) | |
| tree | 3f58907a434ef2cb5ce129489a6212d936eae75d /tmk_core | |
| parent | e182a38e7c63179f11c94cd7d59f9bac829b85a8 (diff) | |
| download | qmk_firmware-406dc2fb2d1e657db2d7235885722dd86d07ea08.tar.gz qmk_firmware-406dc2fb2d1e657db2d7235885722dd86d07ea08.zip | |
Move encoder_read to common location
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/common/keyboard.c | 10 |
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/>. | |||
| 53 | #ifdef RGBLIGHT_ENABLE | 53 | #ifdef RGBLIGHT_ENABLE |
| 54 | # include "rgblight.h" | 54 | # include "rgblight.h" |
| 55 | #endif | 55 | #endif |
| 56 | #ifdef ENCODER_ENABLE | ||
| 57 | # include "encoder.h" | ||
| 58 | #endif | ||
| 56 | #ifdef STENO_ENABLE | 59 | #ifdef STENO_ENABLE |
| 57 | # include "process_steno.h" | 60 | # include "process_steno.h" |
| 58 | #endif | 61 | #endif |
| @@ -249,6 +252,9 @@ void keyboard_init(void) { | |||
| 249 | #ifdef RGBLIGHT_ENABLE | 252 | #ifdef RGBLIGHT_ENABLE |
| 250 | rgblight_init(); | 253 | rgblight_init(); |
| 251 | #endif | 254 | #endif |
| 255 | #ifdef ENCODER_ENABLE | ||
| 256 | encoder_init(); | ||
| 257 | #endif | ||
| 252 | #ifdef STENO_ENABLE | 258 | #ifdef STENO_ENABLE |
| 253 | steno_init(); | 259 | steno_init(); |
| 254 | #endif | 260 | #endif |
| @@ -345,6 +351,10 @@ MATRIX_LOOP_END: | |||
| 345 | # endif | 351 | # endif |
| 346 | #endif | 352 | #endif |
| 347 | 353 | ||
| 354 | #ifdef ENCODER_ENABLE | ||
| 355 | encoder_read(); | ||
| 356 | #endif | ||
| 357 | |||
| 348 | #ifdef QWIIC_ENABLE | 358 | #ifdef QWIIC_ENABLE |
| 349 | qwiic_task(); | 359 | qwiic_task(); |
| 350 | #endif | 360 | #endif |
