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