Make encoder volatile again

This commit is contained in:
C0d3v 2026-01-15 20:22:20 +01:00
parent 3f3a93a440
commit 0f867c2248

View File

@ -37,8 +37,8 @@ void openDrawer(uint8_t index)
const int encoderPinA = A1;
const int encoderPinB = A2;
const int stepsPerClick = 500;
long encoderPostion = 0;
uint8_t lastState;
volatile long encoderPostion = 0;
volatile uint8_t lastState;
long lastClickPosition = 0;
uint8_t selectedIndex = 0;
void setupEncoder()