mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 03:20:05 +01:00
tools: per-slot-delta initialize the pressure thresholds to zero
Python is unhappy about comparing None to > 0
Fixes: 9c042e9620 ("tools: add pressure threshold support to analyze per-slot-delta")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1243>
This commit is contained in:
parent
2c6fa261a3
commit
a2694738cb
1 changed files with 2 additions and 2 deletions
|
|
@ -250,13 +250,13 @@ def main(argv):
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--pressure-min",
|
"--pressure-min",
|
||||||
type=int,
|
type=int,
|
||||||
default=None,
|
default=0,
|
||||||
help="Highlight touches above this pressure minimum",
|
help="Highlight touches above this pressure minimum",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--pressure-max",
|
"--pressure-max",
|
||||||
type=int,
|
type=int,
|
||||||
default=None,
|
default=0,
|
||||||
help="Highlight touches below this pressure maximum",
|
help="Highlight touches below this pressure maximum",
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue