wjasper / Linux_Drivers

Open source Linux device drivers
GNU General Public License v3.0
111 stars 64 forks source link

test-usb1608.c -> sdataOut[] is declared too long #2

Closed trimitri closed 7 years ago

trimitri commented 7 years ago

Dear Dr. Jasper,

thanks a lot for those drivers!

When using the test-usb1608G.c progam, I found an error: sdataOut is declared as being [2*512] long, but only the first half is used when testing the analog output scanning. This leads to garbage values being read and half-sine-half-garbage output on the oscilloscope.

When the declaration is changed to uint16_t sdataOut[512], everything works fine for me.

Regards, Franz Gutsch

wjasper commented 7 years ago

thanks for the email. Fixed.