Advertisement
z-nexx

Untitled

Apr 4th, 2016
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. int ok = 0;
  2. int len = 0;
  3. int block_size = 256;
  4. while (!ok) {
  5.     written = ftdiread(buf+len, block_size); // get byte
  6.     len += block_size;
  7.     printf("%6d%c%c%c%c%c%c%c",len,8,8,8,8,8,8,8);
  8.     written = ftdiread(bufstart, 1); // status
  9.     ok = bufstart[0];
  10. }
  11. printf("\n");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement