From 124a0d31e5a50eadde02c8a045320d0aca4be5f2 Mon Sep 17 00:00:00 2001 From: Marcelo Bezerra <23555060+mmosca@users.noreply.github.com> Date: Fri, 2 Aug 2024 09:58:34 +0200 Subject: [PATCH] Continue sync byte renaming --- src/main/rx/sbus.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/rx/sbus.c b/src/main/rx/sbus.c index 21aef81e4b2..a7ba93456f4 100644 --- a/src/main/rx/sbus.c +++ b/src/main/rx/sbus.c @@ -95,7 +95,7 @@ static void sbusDataReceive(uint16_t c, void *data) sbusFrameData->position = 0; sbusFrameData->buffer[sbusFrameData->position++] = (uint8_t)c; sbusFrameData->state = STATE_SBUS_PAYLOAD; - } else if ((uint8_t)c == SBUS26_FRAME_BEGIN_BYTE) { + } else if ((uint8_t)c == SBUS2_HIGHFRAME_BEGIN_BYTE) { sbusFrameData->position = 0; sbusFrameData->buffer[sbusFrameData->position++] = (uint8_t)c; sbusFrameData->state = STATE_SBUS26_PAYLOAD; @@ -180,12 +180,6 @@ static void sbusDataReceive(uint16_t c, void *data) case STATE_SBUS_WAIT_SYNC: // Stay at this state and do nothing. Exit will be handled before byte is processed if the // inter-frame gap is long enough - if (c == SBUS26_FRAME_BEGIN_BYTE || c == 0xF2 || c == 0x2c) { - sbusFrameData->position = 0; - sbusFrameData->buffer[sbusFrameData->position++] = (uint8_t)c; - sbusFrameData->state = STATE_SBUS26_PAYLOAD; - } - break; } }