We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26e95e3 commit 0b2e630Copy full SHA for 0b2e630
utility/EncoderFirmata.cpp
@@ -203,7 +203,7 @@ void EncoderFirmata::reportPositions()
203
byte encoder;
204
for(encoder=0; encoder<MAX_ENCODERS; encoder++)
205
{
206
- if (isEncoderAttached(encoderNum))
+ if (isEncoderAttached(encoder))
207
208
signed long position = encoders[encoder]->read();
209
long absValue = abs(position);
0 commit comments