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 6730517 commit 9a7d6ffCopy full SHA for 9a7d6ff
utility/EncoderFirmata.cpp
@@ -223,7 +223,7 @@ void EncoderFirmata::_reportEncoderPosition(byte encoder)
223
signed long position = encoders[encoder]->read();
224
long absValue = abs(position);
225
byte direction = position >= 0 ? 0x00 : 0x01;
226
- Firmata.write((direction << 7) | (encoder));
+ Firmata.write((direction << 6) | (encoder));
227
Firmata.write((byte)absValue & 0x7F);
228
Firmata.write((byte)(absValue >> 7) & 0x7F);
229
Firmata.write((byte)(absValue >> 14) & 0x7F);
0 commit comments