I used your HID Read Write Interrupt example for the first USB trials. It worked without major problems - thank you for this.
But when I adapted the example I encountered a problem. I added one line
Code: Select all
...
for(cnt=0;cnt<64;cnt++)
writebuff[cnt]=readbuff[cnt];
while(!HID_Write(&writebuff,64));
writebuff[0] = 66; // New line, this data will be written!
}
}
and saw in the HID terminal that the first received character is always the 'B'. But since the writebuff[0] = 66 line is executed after "data is successfuly sent" (citation from help) the behaviour is not correct in my opinion. To make it more clear I add a screenshot.
- HID-Example.jpg (122.69 KiB) Viewed 5284 times
I think the additional line must have no influence. What do you think?
Thanks and Best Regards
absalom