1
0
Fork 0
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:
Dominic Clifton 2015-07-08 14:48:23 +01:00
parent 3776bb07dc
commit 774a36a2d5
2 changed files with 3 additions and 3 deletions

View file

@ -831,7 +831,7 @@ void mixTable(void)
break;
}
// do camstab
// camera stabilization
if (feature(FEATURE_SERVO_TILT)) {
// center at fixed position, or vary either pitch or roll by RC channel
servo[SERVO_GIMBAL_PITCH] = determineServoMiddleOrForwardFromChannel(SERVO_GIMBAL_PITCH);

View file

@ -994,12 +994,12 @@ static void cliServoMix(char *cmdline)
if (len == 0) {
cliPrint("Rule\tServo\tSource\tRate\tSpeed\tMin\tMax\tBox\r\n");
for (i = 0; i < MAX_SERVO_RULES; i++) {
if (masterConfig.customServoMixer[i].rate == 0)
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",
i,
masterConfig.customServoMixer[i].targetChannel,