mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Avoid print smix table header multiple times.
This commit is contained in:
parent
3776bb07dc
commit
774a36a2d5
2 changed files with 3 additions and 3 deletions
|
@ -831,7 +831,7 @@ void mixTable(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// do camstab
|
// camera stabilization
|
||||||
if (feature(FEATURE_SERVO_TILT)) {
|
if (feature(FEATURE_SERVO_TILT)) {
|
||||||
// center at fixed position, or vary either pitch or roll by RC channel
|
// center at fixed position, or vary either pitch or roll by RC channel
|
||||||
servo[SERVO_GIMBAL_PITCH] = determineServoMiddleOrForwardFromChannel(SERVO_GIMBAL_PITCH);
|
servo[SERVO_GIMBAL_PITCH] = determineServoMiddleOrForwardFromChannel(SERVO_GIMBAL_PITCH);
|
||||||
|
|
|
@ -994,12 +994,12 @@ static void cliServoMix(char *cmdline)
|
||||||
|
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
|
|
||||||
|
cliPrint("Rule\tServo\tSource\tRate\tSpeed\tMin\tMax\tBox\r\n");
|
||||||
|
|
||||||
for (i = 0; i < MAX_SERVO_RULES; i++) {
|
for (i = 0; i < MAX_SERVO_RULES; i++) {
|
||||||
if (masterConfig.customServoMixer[i].rate == 0)
|
if (masterConfig.customServoMixer[i].rate == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
cliPrint("Rule\tServo\tSource\tRate\tSpeed\tMin\tMax\tBox\r\n");
|
|
||||||
|
|
||||||
printf("#%d:\t%d\t%d\t%d\t%d\t%d\t%d\t%d\r\n",
|
printf("#%d:\t%d\t%d\t%d\t%d\t%d\t%d\t%d\r\n",
|
||||||
i,
|
i,
|
||||||
masterConfig.customServoMixer[i].targetChannel,
|
masterConfig.customServoMixer[i].targetChannel,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue