Fixes for --no-timeout and compiler warnings#45
Fixes for --no-timeout and compiler warnings#45jefflasslett wants to merge 7 commits intotias:masterfrom
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 notifications@github.com wrote:
|
Submitted tias#45 Signed-off-by: Jeff Lasslett <jeff.lasslett@gmail.com>
--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.