ok ,what about the report, did you fix that? Should fix the "i have added the code and now its not reporting anything at all."
I dont use a reset like that in my loop this is all I do.
using the while may work better for you.
I dont use a reset like that in my loop this is all I do.
for (;;)
{
getdata();
while ( !usbInterruptIsReady () ) { usbPoll(); }
usbSetInterrupt( (void *) &reportBuffer, sizeof(reportBuffer));
}
using the while may work better for you.