mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Do not return MSP_RESULT_ERROR when succesful (#13328)
This commit is contained in:
parent
05eda719ff
commit
d84ec8da63
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue