1
0
Fork 0

Move encoder_read to common location (#9003)

This commit is contained in:
Joel Challis 2020-06-03 00:54:53 +01:00 committed by GitHub
commit d17572b125
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 18 deletions

View file

@ -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