Merge pull request #1815 from DieHertz/blheli-passthrough-broken-by-ofast

Prevent serial buffer overflow in BLHeli Passthrough code
This commit is contained in:
borisbstyle 2016-12-12 20:11:13 +01:00 committed by GitHub
commit 9165098af6
1 changed files with 2 additions and 0 deletions

View File

@ -807,6 +807,8 @@ void esc4wayProcess(serialPort_t *mspPort)
i=O_PARAM_LEN;
do {
while (!serialTxBytesFree(port));
WriteByteCrc(*O_PARAM);
O_PARAM++;
i--;