From: Egbert Eich <e...@suse.com> This code is entirely irrelevant as it is called immediately after rebasePressure() which already ensures that minPressure is the minimum of minPressure and current pressure unless one mistrusts the implementation of min().
Signed-off-by: Egbert Eich <e...@suse.com> --- This replaces: [PATCH] Fix message if the detected pressure falls below the initially detected pressure src/wcmCommon.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/wcmCommon.c b/src/wcmCommon.c index 3cb93ee..97f7765 100644 --- a/src/wcmCommon.c +++ b/src/wcmCommon.c @@ -1072,14 +1072,6 @@ normalizePressure(const WacomDevicePtr priv, const WacomDeviceState *ds) double pressure; int p = ds->pressure; - if (p < priv->minPressure) - { - LogMessageVerbSigSafe(X_ERROR, 0, - "%s: Pressure %d lower than expected minimum %d. This is a bug.\n", - priv->pInfo->name, ds->pressure, priv->minPressure); - p = priv->minPressure; - } - /* normalize pressure to 0..FILTER_PRESSURE_RES */ pressure = xf86ScaleAxis(p - priv->minPressure, FILTER_PRESSURE_RES, 0, -- 1.8.1.4 ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel