Skip to content

Commit

Permalink
Do not return MSP_RESULT_ERROR when succesful (#13328)
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Feb 4, 2024
1 parent 05eda71 commit d84ec8d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/msp/msp.c
Expand Up @@ -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);

Expand All @@ -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;
}
}
}
Expand Down

0 comments on commit d84ec8d

Please sign in to comment.