1
0
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:
Alessio Morale 2014-02-11 16:51:56 +01:00
parent e16cf0ef8d
commit 21b0049a68

View File

@ -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 {