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

OP-1803 Return link quality of zero rather than throw an exception if no receiver if the receiver port is undefined

This commit is contained in:
Steve Evans 2015-04-20 21:40:42 +01:00
parent b87a1c1fa6
commit d28831008f

View File

@ -129,7 +129,8 @@ uint8_t PIOS_RCVR_GetQuality(uint32_t rcvr_id)
if (!PIOS_RCVR_validate(rcvr_dev)) {
/* Undefined RCVR port for this board (see pios_board.c) */
PIOS_Assert(0);
/* As no receiver is available assume min */
return 0;
}
if (!rcvr_dev->driver->get_quality) {