mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Ability to see how many Tx bytes are free in serial port buffer
This commit is contained in:
parent
d0b940bf75
commit
6e504ca52a
13 changed files with 90 additions and 22 deletions
|
@ -1807,7 +1807,7 @@ void mspProcess(void)
|
|||
|
||||
setCurrentPort(candidatePort);
|
||||
|
||||
while (serialTotalBytesWaiting(mspSerialPort)) {
|
||||
while (serialRxBytesWaiting(mspSerialPort)) {
|
||||
|
||||
uint8_t c = serialRead(mspSerialPort);
|
||||
bool consumed = mspProcessReceivedData(c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue