mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
CJMCU disable cli servos command to save flash space.
At some point in the future it might be an idea to use a define for USE_SERVOS so that more code could be excluded. (Servo tilt, etc).
This commit is contained in:
parent
1a7fe33e16
commit
f6408cd355
1 changed files with 6 additions and 0 deletions
|
@ -199,7 +199,9 @@ const clicmd_t cmdTable[] = {
|
||||||
{ "profile", "index (0 to 2)", cliProfile },
|
{ "profile", "index (0 to 2)", cliProfile },
|
||||||
{ "rateprofile", "index (0 to 2)", cliRateProfile },
|
{ "rateprofile", "index (0 to 2)", cliRateProfile },
|
||||||
{ "save", "save and reboot", cliSave },
|
{ "save", "save and reboot", cliSave },
|
||||||
|
#ifndef CJMCU
|
||||||
{ "servo", "servo config", cliServo },
|
{ "servo", "servo config", cliServo },
|
||||||
|
#endif
|
||||||
{ "set", "name=value or blank or * for list", cliSet },
|
{ "set", "name=value or blank or * for list", cliSet },
|
||||||
{ "status", "show system status", cliStatus },
|
{ "status", "show system status", cliStatus },
|
||||||
{ "version", "", cliVersion },
|
{ "version", "", cliVersion },
|
||||||
|
@ -748,6 +750,9 @@ static void cliColor(char *cmdline)
|
||||||
|
|
||||||
static void cliServo(char *cmdline)
|
static void cliServo(char *cmdline)
|
||||||
{
|
{
|
||||||
|
#ifdef CJMCU
|
||||||
|
UNUSED(cmdline);
|
||||||
|
#else
|
||||||
enum { SERVO_ARGUMENT_COUNT = 6 };
|
enum { SERVO_ARGUMENT_COUNT = 6 };
|
||||||
int16_t arguments[SERVO_ARGUMENT_COUNT];
|
int16_t arguments[SERVO_ARGUMENT_COUNT];
|
||||||
|
|
||||||
|
@ -812,6 +817,7 @@ static void cliServo(char *cmdline)
|
||||||
servo->rate = arguments[4];
|
servo->rate = arguments[4];
|
||||||
servo->forwardFromChannel = arguments[5];
|
servo->forwardFromChannel = arguments[5];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dumpValues(uint16_t mask)
|
static void dumpValues(uint16_t mask)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue