Merge pull request #1815 from DieHertz/blheli-passthrough-broken-by-ofast
Prevent serial buffer overflow in BLHeli Passthrough code
This commit is contained in:
commit
9165098af6
|
@ -807,6 +807,8 @@ void esc4wayProcess(serialPort_t *mspPort)
|
|||
|
||||
i=O_PARAM_LEN;
|
||||
do {
|
||||
while (!serialTxBytesFree(port));
|
||||
|
||||
WriteByteCrc(*O_PARAM);
|
||||
O_PARAM++;
|
||||
i--;
|
||||
|
|
Loading…
Reference in New Issue