diff --git a/embed/prodtest/main.c b/embed/prodtest/main.c index 0b448c7579..25e15e1420 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");