diff --git a/libraries/RotaryEncoder/RotaryEncoder.cpp b/libraries/RotaryEncoder/RotaryEncoder.cpp index 3cd43ccd..7a5b6bd3 100644 --- a/libraries/RotaryEncoder/RotaryEncoder.cpp +++ b/libraries/RotaryEncoder/RotaryEncoder.cpp @@ -34,7 +34,7 @@ */ /**************************************************************************/ -#include "../RotaryEncoder/RotaryEncoder.h" +#include "RotaryEncoder.h" /** * @@ -59,9 +59,6 @@ void RotaryEncoder::begin(void) NRF_QDEC->PSEL.LED = _pinled; } - // shortcut - NRF_QDEC->SHORTS |= QDEC_SHORTS_REPORTRDY_READCLRACC_Msk; - // Enable debounce by default NRF_QDEC->DBFEN = 1; @@ -107,6 +104,9 @@ void RotaryEncoder::setDebounce(bool enable) void RotaryEncoder::setReporter(int8_t sample_num) { + // shortcut +// NRF_QDEC->SHORTS |= QDEC_SHORTS_REPORTRDY_READCLRACC_Msk; + // Disable if (sample_num < 0) {