mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Moved configuration validation into 'config.c'.
This commit is contained in:
parent
b137bbe80c
commit
99f77fa88d
41 changed files with 92 additions and 76 deletions
|
@ -2961,7 +2961,8 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, uint8_t cmdMSP,
|
|||
while (remainingPortsInPacket--) {
|
||||
uint8_t identifier = sbufReadU8(src);
|
||||
|
||||
serialPortConfig_t *portConfig = serialFindPortConfiguration(identifier);
|
||||
serialPortConfig_t *portConfig = serialFindPortConfigurationMutable(identifier);
|
||||
|
||||
if (!portConfig) {
|
||||
return MSP_RESULT_ERROR;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue