Skip to content

Commit 4e21fa7

Browse files
committed
Fix warning
1 parent b46f82a commit 4e21fa7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ats-mini/ats-mini.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ uint32_t consumeEncoderCounts()
306306
noInterrupts();
307307
encCount = encoderCount;
308308
encCountAccel = encoderCountAccel;
309-
encoderCount = encoderCountAccel = 0;
309+
encoderCount = 0;
310+
encoderCountAccel = 0;
310311
interrupts();
311312
return ((uint32_t)encCountAccel << 16) | ((uint16_t)encCount & 0xFFFF);
312313
}

0 commit comments

Comments
 (0)