1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

OP-1122 OP-1145 flight uavtalk minor typo fix and minor error handling improvment

This commit is contained in:
Philippe Renon 2014-01-06 21:45:01 +01:00
parent 772c395e67
commit fe4fe46e34

View File

@ -34,7 +34,7 @@
//#define UAV_DEBUGLOG 1
#if defined UAV_DEBUGLOG && defined(FLASH_FREETOS)
#if defined UAV_DEBUGLOG && defined FLASH_FREERTOS
#define UAVT_DEBUGLOG_PRINTF(...) PIOS_DEBUGLOG_Printf(__VA_ARGS__)
#define UAVT_DEBUGLOG_CPRINTF(objId, ...) if (objId == 0x5E5903CC) { UAVT_DEBUGLOG_PRINTF(__VA_ARGS__); }
#else
@ -678,9 +678,7 @@ int32_t UAVTalkReceiveObject(UAVTalkConnection connectionHandle)
return -1;
}
receiveObject(connection, iproc->type, iproc->objId, iproc->instId, connection->rxBuffer);
return 0;
return receiveObject(connection, iproc->type, iproc->objId, iproc->instId, connection->rxBuffer);
}
/**