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
Traceback y not defined #63
Comments
Hi, Events ABS_MT_POSITION_X and ABS_MT_POSITION_Y always precede BTN_TOOL_FINGER events So x and y are always defined before checking their value to determinate current touch coordinate. |
The issue is that it has happened me at least once, and then the numpad was lit until I restarted the application. Anyway, thanks for the driver. It is a fun feature. |
Hi, It is a collaborative project. Do not hesitate to submit any PR that would improve the readability and maintainability of this project Thank you for your indulgence |
Hi Mohamed, I did a pull-request with some cleanup of the code if you care to check :) |
Thank you! |
Hi,
I don't have the traceback available. But in the code I found something that looked wrong.
In /usr/bin/asus_touchpad_numpad.py there looks to me (and my traceback at computer startup), that x and y could be undefined:
if not these have been matched:
Default values for x and y maybe could help, or an indicator if this has happened.
Also while at it, the try-catch-case this is in looks like it is only used for the last rows, so try could be moved there instead.
The text was updated successfully, but these errors were encountered: