Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long datarefs for USB flight sim controls #85

Merged
merged 2 commits into from
Aug 6, 2015

Conversation

jbliesener
Copy link
Contributor

Due to the fixed USB packet size, the original code does not support flight sim commands or controls with names longer than 58 characters.

This patch splits those long datarefs in various packets and permits names up to 250 characters. It requires an updated version of the X-Plane plugin. Older versions of the plugin won't crash, but will just silently ignore the long datarefs.

The code also provides an optional parameter of type void * that can be passed to the onChange callback-function. That way, the same callback function can be used to handle various datarefs.

Successfully tested on T2++, T3.1 and LC.

PaulStoffregen added a commit that referenced this pull request Aug 6, 2015
Long datarefs for USB flight sim controls
@PaulStoffregen PaulStoffregen merged commit 9468d51 into PaulStoffregen:master Aug 6, 2015
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