mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
OP-1218 fix missing "ret ="
This commit is contained in:
parent
e16cf0ef8d
commit
21b0049a68
@ -518,7 +518,7 @@ static void serialRxTask(__attribute__((unused)) void *parameters)
|
||||
int32_t ret = -2;
|
||||
uint8_t count = 5;
|
||||
while(count-- > 0 && ret < -1){
|
||||
PIOS_COM_SendBufferNonBlocking(PIOS_COM_RADIO, data->serialRxBuf, bytes_to_process);
|
||||
ret = PIOS_COM_SendBufferNonBlocking(PIOS_COM_RADIO, data->serialRxBuf, bytes_to_process);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user