From a2694738cba6dfa9eede94542f17620c187611c7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 23 Jun 2025 13:47:12 +1000 Subject: [PATCH] tools: per-slot-delta initialize the pressure thresholds to zero Python is unhappy about comparing None to > 0 Fixes: 9c042e962010 ("tools: add pressure threshold support to analyze per-slot-delta") Part-of: --- tools/libinput-analyze-per-slot-delta.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libinput-analyze-per-slot-delta.py b/tools/libinput-analyze-per-slot-delta.py index 28806892..659c4bc2 100755 --- a/tools/libinput-analyze-per-slot-delta.py +++ b/tools/libinput-analyze-per-slot-delta.py @@ -250,13 +250,13 @@ def main(argv): parser.add_argument( "--pressure-min", type=int, - default=None, + default=0, help="Highlight touches above this pressure minimum", ) parser.add_argument( "--pressure-max", type=int, - default=None, + default=0, help="Highlight touches below this pressure maximum", ) args = parser.parse_args()