Skip to content

Commit

Permalink
removed sbus stateflags and associated debug_set as this provide noth…
Browse files Browse the repository at this point in the history
…ing above what can be obtained from the frame flags.
  • Loading branch information
andy committed Mar 4, 2019
1 parent daa6df8 commit c6f2dea
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main/rx/sbus.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit c6f2dea

Please sign in to comment.