From 25642c884018fd09313d4f78773ccd587c857f9d Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Tue, 3 Apr 2018 21:07:18 -0400 Subject: [PATCH] adds default encoder res --- keyboards/planck/rev6/matrix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/keyboards/planck/rev6/matrix.c b/keyboards/planck/rev6/matrix.c index cd025ea4..62d34dd2 100644 --- a/keyboards/planck/rev6/matrix.c +++ b/keyboards/planck/rev6/matrix.c @@ -92,6 +92,10 @@ void encoder_update(bool direction) { } bool last_dip_switch[4] = {0}; +#ifndef ENCODER_RESOLUTION + #define ENCODER_RESOLUTION 4 +#undef ENCODER_RESOLUTION + uint8_t matrix_scan(void) { // dip switch dip_switch[0] = palReadPad(GPIOB, 14);