Browse Source

fw_att_control: another ugly way to prevent a newline

sbg
Ban Siesta 10 years ago committed by Lorenz Meier
parent
commit
96bfe85ceb
  1. 5
      src/modules/fw_att_control/fw_att_control_main.cpp

5
src/modules/fw_att_control/fw_att_control_main.cpp

@ -1149,6 +1149,9 @@ int fw_att_control_main(int argc, char *argv[]) @@ -1149,6 +1149,9 @@ int fw_att_control_main(int argc, char *argv[])
err(1, "start failed");
}
/* check if the waiting is necessary at all */
if (att_control::g_control == nullptr || !att_control::g_control->task_running()) {
/* 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);
@ -1156,7 +1159,7 @@ int fw_att_control_main(int argc, char *argv[]) @@ -1156,7 +1159,7 @@ int fw_att_control_main(int argc, char *argv[])
fflush(stdout);
}
printf("\n");
}
exit(0);
}

Loading…
Cancel
Save