mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 20:20:43 +01:00
tools/measure-touchpad-pressure: require max > min for a range
Otherwise a resulting quirk will fail when parsed by libinput which enforces this too. Closes #1060 Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1089>
This commit is contained in:
parent
c3aa00ef90
commit
9988f4242e
1 changed files with 2 additions and 2 deletions
|
|
@ -364,12 +364,12 @@ def colon_tuple(string):
|
|||
try:
|
||||
ts = string.split(":")
|
||||
t = tuple([int(x) for x in ts])
|
||||
if len(t) == 2 and t[0] >= t[1]:
|
||||
if len(t) == 2 and t[0] > t[1]:
|
||||
return t
|
||||
except: # noqa
|
||||
pass
|
||||
|
||||
msg = "{} is not in format N:M (N >= M)".format(string)
|
||||
msg = "{} is not in format N:M (N > M)".format(string)
|
||||
raise argparse.ArgumentTypeError(msg)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue