Explorar o código

adds default encoder res

Jack Humbert %!s(int64=7) %!d(string=hai) anos
pai
achega
25642c8840
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      keyboards/planck/rev6/matrix.c

+ 4 - 0
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);