the only thing I can think of that would give you a disconnect is a infinite loop. This also is a good question for avrfreeks, I dont think the disconnects are v-usb related. I would just debug it and see if your are putting the code in to a long loop.
ps: why is wdt_reset() in the main loop, are you using that for debug?
od and where is the 0 report?
did you mean:
reportBuffer[0]= (read_adc(0));//pc0
reportBuffer[1]= (read_adc(1))*-1;//pc1
reportBuffer[2]= 128;
or
joystick_report.x (read_adc(0));//pc0
joystick_report.x (read_adc(1))*-1;//pc1
never copy from source
!!! I skip 0 for my own reasons.
ps: why is wdt_reset() in the main loop, are you using that for debug?
od and where is the 0 report?
did you mean:
reportBuffer[0]= (read_adc(0));//pc0
reportBuffer[1]= (read_adc(1))*-1;//pc1
reportBuffer[2]= 128;
or
joystick_report.x (read_adc(0));//pc0
joystick_report.x (read_adc(1))*-1;//pc1
never copy from source
