Skip to content

Conversation

@ntruchsess
Copy link
Member

implements #118

also increased Firmata-version to 2.6 as we have extended the protocol in a backwards compatible way.

@ntruchsess
Copy link
Member Author

@nicolaspanel If there are no objections from your side I'll merge this.

@nicolaspanel
Copy link

No problem for me but have you check that all tests are still passing (see encoder_test.ino)?

NB : require last version of arduinounit

@ntruchsess
Copy link
Member Author

good point, I'll do that.

@ntruchsess
Copy link
Member Author

had to adjust encoder_test.ino to match new toggleAutoReport(byte report) signature and semantics, runs fine now :-)

ntruchsess added a commit that referenced this pull request Feb 28, 2014
implement reporting for changed positions only
@ntruchsess ntruchsess merged commit 355bdf1 into firmata:configurable_dev Feb 28, 2014
@ntruchsess ntruchsess deleted the encoder_report_changedonly branch February 28, 2014 22:12
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whenever autoReport is > 0 (see the if in line 161) and either autoReport == 1 or position is different to previously read value it's written to the sysex-report-message. So for autoReport = 1 it's reported allways, for any value > 1 (e.g. 0x02) it's reported only when changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants