nexx512 / txppm

RC-Transmitter ppm signal to joystick input converter through the microphone jack
GNU General Public License v3.0
23 stars 5 forks source link

Does not compile with my linux 4.11... #5

Open yo6ial opened 6 years ago

yo6ial commented 6 years ago

And perhaps newer linux with "raw_copy_from_user" but works great with r = copy_from_user (...); despite running kernel >4.0 Compiler said implicit declaration of function, and from my limited coding experience, I assumed the raw_copy_from_user does not (no longer?) exist newer linux kernels. Fixed by removing/commenting out lines 98, 99, 100 and 102. This could be closed right away, I wrote it just to help others with a quick fix.

Many thanks for this code!!! Tested with HELI-X v6.x and an Sanwa rds8000 radio. I experienced zero lag or extra jitter.

kunalgrover05 commented 5 years ago

I am not sure if removing the code lines is safe. I was able to compile by changing the header to include: https://stackoverflow.com/questions/46302524/copy-to-user-undefined-in-linux-kernel-version-4-12-8