CF/BF - Improve performance of mspSerialPush / MSP_DISPLAYPORT.
commitb307007ac378295a1c616b480c3c6d1801e6a43a
authorHydra <dominic.clifton@cleanflight.com>
Sat, 8 Apr 2017 15:16:37 +0000 (8 16:16 +0100)
committerDominic Clifton <dominic.clifton@cleanflight.com>
Sun, 9 Apr 2017 13:17:58 +0000 (9 14:17 +0100)
tree9968b3cfb59816a9b60dd80e6ff2f5bd27647f3e
parentca5bafeab91e7e02d6c7d42f1da96c998e6365a2
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