Skip to content

Commit 0b2e630

Browse files
committed
fix naming issue
1 parent 26e95e3 commit 0b2e630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utility/EncoderFirmata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void EncoderFirmata::reportPositions()
203203
byte encoder;
204204
for(encoder=0; encoder<MAX_ENCODERS; encoder++)
205205
{
206-
if (isEncoderAttached(encoderNum))
206+
if (isEncoderAttached(encoder))
207207
{
208208
signed long position = encoders[encoder]->read();
209209
long absValue = abs(position);

0 commit comments

Comments
 (0)