report error in pwm command if any

This commit is contained in:
Lorenz Meier 2014-07-19 15:21:29 +02:00
parent fd50655354
commit 74f31618f2
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}