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

Increase MSP and serial separation #2456

Closed

Conversation

martinbudden
Copy link
Contributor

Increases separation between MSP and serial code by avoiding hardcoded mspProcessCommand in msp_serial.c. Instead a function pointer is passed into mspSerialInit.

Only done for the MSP_SERVER side, but a similar thing could be done for the MSP_CLIENT.

@hydra - what do you think?

@ledvinap
Copy link
Contributor

Is this really usefull? There is always only one possible handler for packets received over MSP and linker can easily resolve correct function for FC/OSD case (with error checking). Using indirection will only complicate things ...
But I may be missing something ...

@hydra hydra closed this Feb 25, 2017
martinbudden pushed a commit to martinbudden/cleanflight that referenced this pull request Feb 27, 2017
…i_spektrum_bind_pin

Re-add Spektrum bind pin for SPRACINGF3MINI / TINYBEEF3.
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.

None yet

3 participants