From: Othmar Gsenger Date: Wed, 14 Dec 2011 02:31:24 +0000 (+0000) Subject: basically working version, but still problems X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=2bf5a97c9ca0349c51f33d28c55363b3ebb47251;p=svn42.git basically working version, but still problems --- diff --git a/rf433rcv/pc/rawhid_test.c b/rf433rcv/pc/rawhid_test.c index 38f3401..8b1f757 100644 --- a/rf433rcv/pc/rawhid_test.c +++ b/rf433rcv/pc/rawhid_test.c @@ -42,16 +42,22 @@ int main (int argc, char *argv[]) return -3; printf("Clearing Buffer\n"); sendstr("c"); // clear the buffer - buf[0]='f'; - while ( fread(buf+1, 1, 63, f) ) + buf[0]='f'; + size_t len; + while ( ( len = fread(buf+1, 1, 63, f) ) ) { rawhid_send(0, buf, 64, 1000); //fill the buffer - printf("Sending Buffer\n"); + printf("Sending Buffer %d bytes\n",len); + for(i=0;i