summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2012-01-12 20:05:28 +0100
committerHenrik Rydberg <rydberg@euromail.se>2012-01-12 20:05:28 +0100
commit3ec66c3b21e45d6529567f5144ba24dcc4645591 (patch)
treefe1fc690c884fb6c003715e6d4bb24b582f250c5
parent3aa3de4c19b80caaf93812fafff20acd5f5a4d12 (diff)
downloadmtdev-git-3ec66c3b21e45d6529567f5144ba24dcc4645591.tar.gz
Add the missing distance event to the internal slot representationv1.1.1
The new distance value was missing from the internal representation, leading to memory corruption for devices supporting the event. Fixed with this patch. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r--src/state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state.h b/src/state.h
index 4e98a08..256858a 100644
--- a/src/state.h
+++ b/src/state.h
@@ -48,6 +48,7 @@ struct mtdev_slot {
int blob_id;
int tracking_id;
int pressure;
+ int distance;
};
static inline int get_sval(const struct mtdev_slot *slot, int ix)