more clean up

This commit is contained in:
hathach committed 2017-09-13 18:07:46 +07:00
1 parent 1656ea6da0
commit f13e3f6113
1 file changed
+4 -4
+4 -4
View File
@@ -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)
{