VTOL att controller: Code style fix

This commit is contained in:
Lorenz Meier
2017-07-02 20:59:25 +02:00
parent 792b03628f
commit 5724bef14d

View File

@@ -689,7 +689,7 @@ void VtolAttitudeControl::task_main()
}
/* wait for up to 100ms for data */
int pret = px4_poll(&fds[0], (sizeof(fds) / sizeof(fds[0])), 100);
int pret = px4_poll(&fds[0], sizeof(fds) / sizeof(fds[0]), 100);
/* timed out - periodic check for _task_should_exit */
@@ -699,7 +699,7 @@ void VtolAttitudeControl::task_main()
/* this is undesirable but not much we can do - might want to flag unhappy status */
if (pret < 0) {
warn("poll error %d, %d", pret, errno);
PX4_WARN("poll error %d, %d", pret, errno);
/* sleep a bit before next try */
usleep(100000);
continue;
@@ -844,7 +844,7 @@ void VtolAttitudeControl::task_main()
}
}
warnx("exit");
PX4_WARN("exit");
_control_task = -1;
}