mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
pwm_out_sim: fix comment & add missing return
This commit is contained in:
parent
dff7cf687a
commit
cd4eb9a1de
@ -563,7 +563,7 @@ int PWMSim::custom_command(int argc, char *argv[])
|
||||
{
|
||||
const char *verb = argv[0];
|
||||
|
||||
/* start the FMU if not running */
|
||||
/* start the task if not running */
|
||||
if (!is_running()) {
|
||||
int ret = PWMSim::task_spawn(argc, argv);
|
||||
|
||||
@ -590,6 +590,8 @@ int PWMSim::custom_command(int argc, char *argv[])
|
||||
/* (re)set the PWM output mode */
|
||||
return object->set_mode(servo_mode);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
return print_usage("unknown command");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user