diff options
Diffstat (limited to 'software/hhd70dongle')
-rw-r--r-- | software/hhd70dongle/pcusbhid/rawhid_testinterface.c | 4 |
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); } } } |