From 622cb847e5a624a7db327225d710e34a6a5a4e72 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Tue, 9 Jan 2018 15:28:11 +0100 Subject: [PATCH] prodtest: fix touch coordinates --- embed/prodtest/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embed/prodtest/main.c b/embed/prodtest/main.c index 0b448c75..25e15e14 100644 --- a/embed/prodtest/main.c +++ b/embed/prodtest/main.c @@ -193,8 +193,8 @@ static void test_touch(const char *args) uint32_t evt = 0; if (touch_click_timeout(&evt, timeout * 1000)) { - uint32_t x = (evt & 0xFF00) >> 8; - uint32_t y = (evt & 0xFF); + uint32_t x = (evt >> 12) & 0xFFF; + uint32_t y = (evt >> 0) & 0xFFF; vcp_printf("OK %d %d", x, y); } else { vcp_printf("ERROR TIMEOUT");