CF/BF - Improve performance of mspSerialPush / MSP_DISPLAYPORT.
commit90e37a08d61abb7c3244181ab7f207b39d39a2c5
authorHydra <dominic.clifton@cleanflight.com>
Sat, 8 Apr 2017 15:16:37 +0000 (8 16:16 +0100)
committerDominic Clifton <dominic.clifton@cleanflight.com>
Sat, 8 Apr 2017 20:48:43 +0000 (8 21:48 +0100)
tree83a7e7ad0766821e5f0cd99e4e647928e62971e6
parent10a5cfaf5c62f2416d0b454aa9162129117f99dc
CF/BF - Improve performance of mspSerialPush / MSP_DISPLAYPORT.

* avoiding the use of an unncessesary buffer and memcopy
* the `pushBuf` was a fixed size
* the size didn't correlate to the size of the buffer being passed in.
* avoids repeating the memcpy for each port being used for MSP.
* reduces ram usage.
src/main/io/displayport_msp.c
src/main/msp/msp_serial.c
src/main/msp/msp_serial.h