tablet: don't set a pressure offset of 0

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Jason Gerecke <jason.gerecke@wacom.com>
This commit is contained in:
Peter Hutterer 2016-01-05 11:09:35 +10:00
parent 1a99977ca0
commit 3c5483ac16

View file

@ -1047,6 +1047,9 @@ detect_pressure_offset(struct tablet_dispatch *tablet,
return;
}
if (offset == 0)
return;
/* we only set a pressure offset on proximity in */
if (!tablet_has_status(tablet, TABLET_TOOL_ENTERING_PROXIMITY))
return;