Fix for: serial buffer broke BLHeli 1wire pass through

This commit is contained in:
4712 2016-02-10 10:48:29 +01:00 committed by borisbstyle
parent 3f261970c5
commit 2af929797d
1 changed files with 2 additions and 0 deletions

View File

@ -1756,6 +1756,8 @@ static bool processInCommand(void)
// proceed with a success reply first
headSerialReply(0);
tailSerialReply();
// flush the transmit buffer
bufWriterFlush(writer);
// wait for all data to send
waitForSerialPortToFinishTransmitting(currentPort->port);
// Start to activate here