mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 03:03:36 +08:00
fw_att_control: another ugly way to prevent a newline
This commit is contained in:
@@ -1149,14 +1149,17 @@ int fw_att_control_main(int argc, char *argv[])
|
|||||||
err(1, "start failed");
|
err(1, "start failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* avoid memory fragmentation by not exiting start handler until the task has fully started */
|
/* check if the waiting is necessary at all */
|
||||||
while (att_control::g_control == nullptr || !att_control::g_control->task_running()) {
|
if (att_control::g_control == nullptr || !att_control::g_control->task_running()) {
|
||||||
usleep(50000);
|
|
||||||
printf(".");
|
|
||||||
fflush(stdout);
|
|
||||||
}
|
|
||||||
printf("\n");
|
|
||||||
|
|
||||||
|
/* avoid memory fragmentation by not exiting start handler until the task has fully started */
|
||||||
|
while (att_control::g_control == nullptr || !att_control::g_control->task_running()) {
|
||||||
|
usleep(50000);
|
||||||
|
printf(".");
|
||||||
|
fflush(stdout);
|
||||||
|
}
|
||||||
|
printf("\n");
|
||||||
|
}
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user