prodtest: fix touch coordinates

This commit is contained in:
Jan Pochyla 2018-01-09 15:28:11 +01:00
parent f0cd76de47
commit 622cb847e5
1 changed files with 2 additions and 2 deletions

View File

@ -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");