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:
Peter Hutterer 2025-06-23 13:47:12 +10:00 committed by Marge Bot
parent 2c6fa261a3
commit a2694738cb

View file

@ -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()