mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
OP-1803 Don't report error codes as %
This commit is contained in:
parent
d28831008f
commit
8689b2d0ca
@ -653,14 +653,19 @@ static bool updateRcvrStatus(
|
||||
{
|
||||
extern uint32_t pios_rcvr_group_map[];
|
||||
bool activity_updated = false;
|
||||
uint8_t quality;
|
||||
int8_t quality;
|
||||
|
||||
quality = PIOS_RCVR_GetQuality(pios_rcvr_group_map[group]);
|
||||
|
||||
/* If no driver is detected or any other error then return */
|
||||
if (quality < 0) {
|
||||
return activity_updated;
|
||||
}
|
||||
|
||||
/* Compare with previous sample */
|
||||
if (quality != fsm->quality) {
|
||||
fsm->quality = quality;
|
||||
ReceiverStatusQualitySet(&quality);
|
||||
ReceiverStatusQualitySet(&fsm->quality);
|
||||
activity_updated = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user