HIL driver: Fix boot order race

This commit is contained in:
Lorenz Meier 2015-06-12 09:27:15 +02:00
parent 7eef2e9c58
commit 863a6e8811
1 changed files with 3 additions and 4 deletions

View File

@ -331,10 +331,9 @@ HIL::task_main()
/* advertise the mixed control outputs */
actuator_outputs_s outputs;
memset(&outputs, 0, sizeof(outputs));
/* advertise the mixed control outputs */
int dummy;
_t_outputs = orb_advertise_multi(ORB_ID(actuator_outputs),
&outputs, &dummy, ORB_PRIO_LOW);
/* advertise the mixed control outputs, insist on the first group output */
_t_outputs = orb_advertise(ORB_ID(actuator_outputs),
&outputs);
pollfd fds[2];
fds[0].fd = _t_actuators;