-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for --no-timeout and compiler warnings #45
base: master
Are you sure you want to change the base?
Conversation
…as non-virtual descructor
I think this commit fixes the issue reported by Tokoyami. Calibration values were really wrong. The issue seemed to be caused by the commits bfeaf2e (which is a broken commit) and 07978b9. git-bisect told me this. Also removed duplication of calibration code "finish()" between evdev.cpp and calibrator.cpp. Added "compensateForDevice()" virtual function to handle adjustments needed to compensate for the device.
Also, explicitly use double types in calibration calculations. Due to the use of fp constants without a suffix, double was always the type within the scaling arithmetic anyway.
I've also fixed a few problems with the calibrator now. Calibrates properly when axes swapping is required. I've removed some code duplication too. |
Thanks, I have to look into the fix in more detail. The problem is that the behaviour of the evdev driver changed, so depending on your evdev version you will either fix or break it... |
Can you tell me what version of evdev you are running? Thanks |
Hi Tias, Sorry for the late reply. 14.544 Module evdev: vendor="X.Org Foundation" Looks like 2.7.3 Cheers, On 8 February 2013 07:41, Tias Guns [email protected] wrote:
|
Submitted tias#45 Signed-off-by: Jeff Lasslett <[email protected]>
--no-timeout seemed to only prevent the display of the timeout progress indicator. It didn't actually prevent the timeout.
Also eliminated some compiler warnings.