1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Added call to PRFlushWriteData at the end of each run loop.

This commit is contained in:
gstellenberg
2009-05-29 12:14:24 -05:00
parent c080334515
commit a8f8e17824

View File

@@ -375,6 +375,7 @@ void RunLoop(PRHandle proc)
gettimeofday(&tv, NULL);
printf("%d.%03d switch % 3d: %s\n", tv.tv_sec-startTime, tv.tv_usec/1000, event->value, stateText);
}
PRFlushWriteData(proc);
usleep(10*1000); // Sleep for 10ms so we aren't pegging the CPU.
}
}