summaryrefslogtreecommitdiff
path: root/software/hhd70dongle
diff options
context:
space:
mode:
authorBernhard Tittelbach <xro@realraum.at>2012-05-17 06:14:38 +0000
committerBernhard Tittelbach <xro@realraum.at>2012-05-17 06:14:38 +0000
commit8331cd2268f5a3b8eb841db822b566eefa1d510e (patch)
tree8bc09c8a89329f56c5bb925d3a63ef83f5b73955 /software/hhd70dongle
parentdoc frame types (diff)
regularly flush stdout
git-svn-id: https://svn.spreadspace.org/mur.sat@424 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/hhd70dongle')
-rw-r--r--software/hhd70dongle/pcusbhid/rawhid_testinterface.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}
}