From c6f2deaccc00de4dcf87bbd6167a9f5e29a46c8c Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 4 Mar 2019 13:52:14 +0000 Subject: [PATCH] removed sbus stateflags and associated debug_set as this provide nothing above what can be obtained from the frame flags. --- src/main/rx/sbus.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/main/rx/sbus.c b/src/main/rx/sbus.c index 14a544c72..0e88685ec 100644 --- a/src/main/rx/sbus.c +++ b/src/main/rx/sbus.c @@ -102,7 +102,6 @@ typedef union sbusFrame_u { typedef struct sbusFrameData_s { sbusFrame_t frame; uint32_t startAtUs; - uint16_t stateFlags; uint8_t position; bool done; } sbusFrameData_t; @@ -149,17 +148,6 @@ static uint8_t sbusFrameStatus(rxRuntimeConfig_t *rxRuntimeConfig) DEBUG_SET(DEBUG_SBUS, DEBUG_SBUS_FRAME_FLAGS, sbusFrameData->frame.frame.channels.flags); - if (sbusFrameData->frame.frame.channels.flags & SBUS_FLAG_SIGNAL_LOSS) { - sbusFrameData->stateFlags |= SBUS_STATE_SIGNALLOSS; - DEBUG_SET(DEBUG_SBUS, DEBUG_SBUS_STATE_FLAGS, sbusFrameData->stateFlags); - } - if (sbusFrameData->frame.frame.channels.flags & SBUS_FLAG_FAILSAFE_ACTIVE) { - sbusFrameData->stateFlags |= SBUS_STATE_FAILSAFE; - DEBUG_SET(DEBUG_SBUS, DEBUG_SBUS_STATE_FLAGS, sbusFrameData->stateFlags); - } - - DEBUG_SET(DEBUG_SBUS, DEBUG_SBUS_STATE_FLAGS, sbusFrameData->stateFlags); - return sbusChannelsDecode(rxRuntimeConfig, &sbusFrameData->frame.frame.channels); }