From 8f2f14fdec1be4ec3a404a89f0f3819350fb6386 Mon Sep 17 00:00:00 2001 From: Balz Guenat Date: Thu, 4 Mar 2021 12:46:54 -0800 Subject: [PATCH] replace include of quantum.h in encoder.h --- quantum/encoder.c | 4 ++-- quantum/encoder.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/quantum/encoder.c b/quantum/encoder.c index eb21710a2a65..cee2c8f78c3a 100644 --- a/quantum/encoder.c +++ b/quantum/encoder.c @@ -99,7 +99,7 @@ void encoder_init(void) { pad_b = encoders_pad_b; firstEncoderHere = 0; #else - if (is_keyboard_left()) { + if (isLeftHand) { numEncodersHere = NUMBER_OF_ENCODERS_LEFT; pad_a = encoders_pad_a; pad_b = encoders_pad_b; @@ -129,7 +129,7 @@ static bool encoder_update(int8_t index, uint8_t state) { # ifndef SPLIT_KEYBOARD int8_t resolution = encoder_resolutions[index]; # else - int8_t resolution = is_keyboard_left() ? encoder_resolutions[index] : encoder_resolutions_right[index - NUMBER_OF_ENCODERS_LEFT]; + int8_t resolution = isLeftHand ? encoder_resolutions[index] : encoder_resolutions_right[index - NUMBER_OF_ENCODERS_LEFT]; # endif #else int8_t resolution = ENCODER_RESOLUTION; diff --git a/quantum/encoder.h b/quantum/encoder.h index db6f220da4a4..71089625e03e 100644 --- a/quantum/encoder.h +++ b/quantum/encoder.h @@ -17,7 +17,9 @@ #pragma once -#include "quantum.h" +#include +#include +#include void encoder_init(void); bool encoder_read(void);