aboutsummaryrefslogtreecommitdiff
path: root/apps/px4
diff options
context:
space:
mode:
authorSimon Wilks <sjwilks@gmail.com>2012-09-28 08:37:24 +0200
committerSimon Wilks <sjwilks@gmail.com>2012-09-28 08:37:24 +0200
commit4933d1dbbd8146ec548168fb9b855009107078ca (patch)
treee13607a00194cbeefe0f6f652a1556a9eb02b643 /apps/px4
parentb02a5a9eb960a815eeab4ab30e86f3d2bd8e8b12 (diff)
downloadpx4-firmware-4933d1dbbd8146ec548168fb9b855009107078ca.tar.gz
px4-firmware-4933d1dbbd8146ec548168fb9b855009107078ca.tar.bz2
px4-firmware-4933d1dbbd8146ec548168fb9b855009107078ca.zip
Only provide update rate mod support to modes supporting 4 PWM channels
Diffstat (limited to 'apps/px4')
-rw-r--r--apps/px4/fmu/fmu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/px4/fmu/fmu.cpp b/apps/px4/fmu/fmu.cpp
index d8f824c53..48d338c99 100644
--- a/apps/px4/fmu/fmu.cpp
+++ b/apps/px4/fmu/fmu.cpp
@@ -625,7 +625,7 @@ fmu_main(int argc, char *argv[])
/* look for the optional pwm update rate for the supported modes */
if (strcmp(argv[i], "-u") == 0 || strcmp(argv[i], "--update-rate") == 0) {
- if (new_mode == PORT_FULL_PWM || new_mode == PORT_PWM_AND_SERIAL || new_mode == PORT_PWM_AND_GPIO) {
+ if (new_mode == PORT_FULL_PWM || new_mode == PORT_PWM_AND_GPIO) {
if (argc > i + 1) {
pwm_update_rate_in_hz = atoi(argv[i + 1]);
} else {
@@ -633,7 +633,7 @@ fmu_main(int argc, char *argv[])
return 1;
}
} else {
- fprintf(stderr, "pwm update rate currently only supported for mode_pwm, mode_gpio_serial, mode_pwm_gpio\n");
+ fprintf(stderr, "pwm update rate currently only supported for mode_pwm, mode_pwm_gpio\n");
}
}
}