From 21b0049a68ddb0a4e81335864cb68a693004b1c0 Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Tue, 11 Feb 2014 16:51:56 +0100 Subject: [PATCH] OP-1218 fix missing "ret =" --- flight/modules/RadioComBridge/RadioComBridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/modules/RadioComBridge/RadioComBridge.c b/flight/modules/RadioComBridge/RadioComBridge.c index 55fb1f1e4..c9aa96c39 100644 --- a/flight/modules/RadioComBridge/RadioComBridge.c +++ b/flight/modules/RadioComBridge/RadioComBridge.c @@ -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 {