forked from Archive/PX4-Autopilot
report error in pwm command if any
This commit is contained in:
parent
fd50655354
commit
74f31618f2
|
@ -648,6 +648,10 @@ pwm_main(int argc, char *argv[])
|
|||
/* force failsafe */
|
||||
ret = ioctl(fd, PWM_SERVO_SET_FORCE_FAILSAFE, 0);
|
||||
}
|
||||
|
||||
if (ret != OK) {
|
||||
warnx("FAILED setting forcefail %s", argv[2]);
|
||||
}
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue