1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00

Cleanup CLI

* optimize for code size.
* consolidate error message handling.
* replace similar error messages with identical ones.
* shorten all strings where possible.
* made less verbose.

This was required for the CC3D OPBL build.
This commit is contained in:
Dominic Clifton 2015-06-29 03:15:33 +01:00
parent 9389239207
commit b5e18a90a2
5 changed files with 211 additions and 159 deletions

View file

@ -851,7 +851,7 @@ static bool processOutCommand(uint8_t cmdMSP)
serialize8(currentProfile->servoConf[i].rate);
serialize8(currentProfile->servoConf[i].angleAtMin);
serialize8(currentProfile->servoConf[i].angleAtMax);
serialize32(currentProfile->servoConf[i].reversedChannels);
serialize32(currentProfile->servoConf[i].reversedSources);
}
break;
case MSP_CHANNEL_FORWARDING:
@ -1453,7 +1453,7 @@ static bool processInCommand(void)
currentProfile->servoConf[i].rate = read8();
currentProfile->servoConf[i].angleAtMin = read8();
currentProfile->servoConf[i].angleAtMax = read8();
currentProfile->servoConf[i].reversedChannels = read32();
currentProfile->servoConf[i].reversedSources = read32();
}
}
#endif