- size_t len= fread(buf+1, 1, 63, f);
- for(i=len+1;i<64;i++)
- buf[i]=0xff;
- rawhid_send(0, buf, 64, 100); //fill the buffer
+ while ( fread(buf+1, 1, 63, f) )
+ {
+
+ rawhid_send(0, buf, 64, 1000); //fill the buffer
+ printf("Sending Buffer\n");
+ }
+ printf("Executing Send command\n");