mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-31 16:52:10 +01:00
Merge branch 'steve/OP-1803_s.bus_dropped_frames' into steve/OP-1849_flexio_com_bridge
This commit is contained in:
commit
6e6b8c8bad
@ -713,14 +713,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;
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
#include "pios_dsm_priv.h"
|
||||
|
||||
// *** UNTESTED CODE ***
|
||||
#define DSM_LINK_QUALITY
|
||||
#undef DSM_LINK_QUALITY
|
||||
|
||||
/* Forward Declarations */
|
||||
static int32_t PIOS_DSM_Get(uint32_t rcvr_id, uint8_t channel);
|
||||
|
@ -35,7 +35,7 @@
|
||||
#include "pios_dsm_priv.h"
|
||||
|
||||
// *** UNTESTED CODE ***
|
||||
#define DSM_LINK_QUALITY
|
||||
#undef DSM_LINK_QUALITY
|
||||
|
||||
#ifndef PIOS_INCLUDE_RTC
|
||||
#error PIOS_INCLUDE_RTC must be used to use DSM
|
||||
|
Loading…
x
Reference in New Issue
Block a user