summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlalalademaxiya1 <2831039915@qq.com>2023-03-16 14:56:17 +0800
committerlalalademaxiya1 <2831039915@qq.com>2023-03-16 14:56:17 +0800
commit0f35f0e2ed1343765422bc9abf4fe240768b4130 (patch)
tree1bb4cd5d662c4c2965a3dfe2ed9a0e5b74d604b2
parent0170134118ae902a804cefd7bdff8bc122d25da4 (diff)
Update encoder.c
-rw-r--r--quantum/encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/encoder.c b/quantum/encoder.c
index 7b3738f9a1..e2029fa376 100644
--- a/quantum/encoder.c
+++ b/quantum/encoder.c
@@ -40,6 +40,7 @@ extern volatile bool isLeftHand;
static pin_t encoders_pad_a[NUM_ENCODERS_MAX_PER_SIDE] = ENCODERS_PAD_A;
static pin_t encoders_pad_b[NUM_ENCODERS_MAX_PER_SIDE] = ENCODERS_PAD_B;
+static bool encoder_interrupt_update[NUM_ENCODERS] = {false};
#ifdef ENCODER_RESOLUTIONS
static uint8_t encoder_resolutions[NUM_ENCODERS] = ENCODER_RESOLUTIONS;
@@ -56,7 +57,6 @@ static int8_t encoder_LUT[] = {0, -1, 1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1,
static uint8_t encoder_state[NUM_ENCODERS] = {0};
static int8_t encoder_pulses[NUM_ENCODERS] = {0};
-static bool encoder_interrupt_update[NUM_ENCODERS] = {false};
// encoder counts
static uint8_t thisCount;