1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 19:40:31 +03:00

Moved configuration validation into 'config.c'.

This commit is contained in:
mikeller 2019-11-24 18:54:11 +13:00
parent b137bbe80c
commit 99f77fa88d
41 changed files with 92 additions and 76 deletions

View file

@ -1238,14 +1238,14 @@ static void cliSerial(char *cmdline)
serialPortConfig_t portConfig;
memset(&portConfig, 0 , sizeof(portConfig));
serialPortConfig_t *currentConfig;
uint8_t validArgumentCount = 0;
const char *ptr = cmdline;
int val = atoi(ptr++);
currentConfig = serialFindPortConfiguration(val);
serialPortConfig_t *currentConfig = serialFindPortConfigurationMutable(val);
if (currentConfig) {
portConfig.identifier = val;
validArgumentCount++;