Skip to content
Snippets Groups Projects
Commit 5b9017ac authored by burneykb's avatar burneykb
Browse files

Fixed quadlog_file not being flushed

parent 2a85dc87
No related branches found
No related tags found
No related merge requests found
......@@ -230,8 +230,6 @@ int main(int argc, char **argv)
printf("Creating log file '%s'...\n",log_file);
quadlog_file = fopen(log_file, "a");
// Tell the quad we are ready to send it vrpn data
sendStartPacket();
......@@ -722,6 +720,7 @@ static void quad_recv() {
case LOG_ID:
/* something like this */
fwrite((char *) data, sizeof(char), m.data_len, quadlog_file);
fflush(quadlog_file);
break;
case SETPARAM_ID:
case GETPARAM_ID:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment