Geekboy

Untitled

Apr 23rd, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. } else {
  2.                         //device type is Direct USB
  3.                         //need to send thismsgsize bytes starting at thismsg+3+2
  4.                         //+3 trims off SBL, SBH, type
  5.                         //+2 trims 255, 127
  6.                         //length: -2 trims 255, 127; -1 trims 42
  7.                         thismsgsize -= 2+1;
  8.                         if (0 != send_ti_buffer(devh,thismsg+3+2,thismsgsize)) {
  9.                             fprintf(stderr,"Error: Failed to send Direct USB frame\n");
  10.                             close_ti_device(devh);
  11.                             devh = NULL;
  12.                             if (!persist)
  13.                                cleanupall();
  14.                         }
Advertisement
Add Comment
Please, Sign In to add comment