From d84ec8da6394b1aab4ea94b53298225a153d79a6 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sun, 4 Feb 2024 11:52:52 +0100 Subject: [PATCH] Do not return MSP_RESULT_ERROR when succesful (#13328) --- src/main/msp/msp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/msp/msp.c b/src/main/msp/msp.c index 832084dfbb9..5c8f944611c 100644 --- a/src/main/msp/msp.c +++ b/src/main/msp/msp.c @@ -4259,11 +4259,9 @@ static mspResult_e mspCommonProcessInCommand(mspDescriptor_t srcDesc, int16_t cm // Timers uint8_t index = sbufReadU8(src); if (index > OSD_TIMER_COUNT) { - return MSP_RESULT_ERROR; + return MSP_RESULT_ERROR; } osdConfigMutable()->timers[index] = sbufReadU16(src); - - return MSP_RESULT_ERROR; } else { const uint16_t value = sbufReadU16(src); @@ -4278,7 +4276,7 @@ static mspResult_e mspCommonProcessInCommand(mspDescriptor_t srcDesc, int16_t cm osdElementConfigMutable()->item_pos[addr] = value; osdAnalyzeActiveElements(); } else { - return MSP_RESULT_ERROR; + return MSP_RESULT_ERROR; } } }