mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14: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;
|
int32_t ret = -2;
|
||||||
uint8_t count = 5;
|
uint8_t count = 5;
|
||||||
while(count-- > 0 && ret < -1){
|
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 {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user