From 73f8b03940192a76bf50bb55b84e7878fad46679 Mon Sep 17 00:00:00 2001 From: Marcelo Bezerra <23555060+mmosca@users.noreply.github.com> Date: Thu, 1 Aug 2024 00:30:26 +0200 Subject: [PATCH] Adding missing commits --- src/main/rx/sbus.c | 2 +- src/main/rx/sbus_channels.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/rx/sbus.c b/src/main/rx/sbus.c index df22dab3e..9b24361a0 100644 --- a/src/main/rx/sbus.c +++ b/src/main/rx/sbus.c @@ -64,7 +64,7 @@ typedef struct sbusFrameData_s { volatile sbusFrame_t frame; volatile bool frameDone; volatile bool is26channels; - uint8_t buffer[SBUS26_FRAME_SIZE]; + uint8_t buffer[SBUS_FRAME_SIZE]; uint8_t position; timeUs_t lastActivityTimeUs; } sbusFrameData_t; diff --git a/src/main/rx/sbus_channels.c b/src/main/rx/sbus_channels.c index 8697544a0..01c9aab5b 100644 --- a/src/main/rx/sbus_channels.c +++ b/src/main/rx/sbus_channels.c @@ -36,7 +36,7 @@ STATIC_ASSERT(SBUS_FRAME_SIZE == sizeof(sbusFrame_t), SBUS_FRAME_SIZE_doesnt_mat uint8_t sbus26ChannelsDecode(rxRuntimeConfig_t *rxRuntimeConfig, const sbusChannels_t *channels, bool highChannels) { - uint8_t offset = highChannels ? 16 : 0 + uint8_t offset = highChannels ? 16 : 0; uint16_t *sbusChannelData = rxRuntimeConfig->channelData; sbusChannelData[0 + offset] = channels->chan0; sbusChannelData[1 + offset] = channels->chan1; -- 2.11.4.GIT