From 8331cd2268f5a3b8eb841db822b566eefa1d510e Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Thu, 17 May 2012 06:14:38 +0000 Subject: regularly flush stdout git-svn-id: https://svn.spreadspace.org/mur.sat@424 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/hhd70dongle/pcusbhid/rawhid_testinterface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'software/hhd70dongle') diff --git a/software/hhd70dongle/pcusbhid/rawhid_testinterface.c b/software/hhd70dongle/pcusbhid/rawhid_testinterface.c index 1d47daa..386fa9e 100644 --- a/software/hhd70dongle/pcusbhid/rawhid_testinterface.c +++ b/software/hhd70dongle/pcusbhid/rawhid_testinterface.c @@ -30,7 +30,7 @@ int mtime_diff(struct timeval high,struct timeval low) int main (int argc, char *argv[]) { - int i, r, num; + int r, num; char buf[BUF_LEN]; // C-based example is 16C0:0480:FFAB:0200 unsigned int attemtps = 100; @@ -50,7 +50,6 @@ int main (int argc, char *argv[]) printf("found rawhid device\n\n"); //~ printf("Clearing Buffer\n"); //~ sendstr("c"); // clear the buffer - size_t len; //~ struct timeval start_time,stop_time; //~ gettimeofday(&start_time,NULL); //~ gettimeofday(&stop_time,NULL); @@ -70,6 +69,7 @@ int main (int argc, char *argv[]) { buf[num]='\0'; printf("%s\n",buf); + fflush(0); } } } -- cgit v1.2.3